Re: [android-developers] JPG corrupted after save and load from external storage
On Aug 13, 2012, at 8:05 PM, user123 <ivanschuetz@gmail.com> wrote:
> Maybe it's important, this is the code I instantiate the downloaded bitmap/drawable (which is later saved to the sd card) with:
>
> InputStream is = fetch(urlString);
> TypedValue typedValue = new TypedValue();
>
> typedValue.density = TypedValue.DENSITY_DEFAULT;
> Drawable drawable = Drawable.createFromResourceStream(null, typedValue, new FlushedInputStream(is), "src");
Hmmm… Maybe you could try changing this code to;
InputStream is = fetch(urlString);
Drawable drawable = new BitmapDrawable(null, is);
If it made any change.
--
H
--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home