[android-developers] Re: Drawable doesn't load sometimes

2008-12-15 Thread Cheryl Sedota
Romain, What is the bug number for this? Was it fixed in the 1.0 r2 SDK? - Cheryl On Nov 12, 7:25 am, blindfold seeingwithso...@gmail.com wrote: Interesting. In case this Android bug/feature not only applies to input streams, this might also explain why I no longer had memory related

[android-developers] Re: Drawable doesn't load sometimes

2008-12-15 Thread Romain Guy
It wasn't fixed in 1.0r2. We cannot put fixes in the SDK if they are not available on the phones. Also, the bug is internal, it's not on the external tracker. On Mon, Dec 15, 2008 at 11:30 PM, Cheryl Sedota cherylsed...@gmail.com wrote: Romain, What is the bug number for this? Was it fixed

[android-developers] Re: Drawable doesn't load sometimes

2008-12-15 Thread Cheryl Sedota
Romain, Can you please give details on the exact problem with the current 1.0 SDK? Should we avoid Drawables completely in favor of setting resource id's or bitmap objects? Or is the problem specific to a use case like loading remote images (via URL)? Based on the comment above that

[android-developers] Re: Drawable doesn't load sometimes

2008-12-15 Thread Romain Guy
It has nothing to do with Drawables, it's just a buffering issue with loading large bitmaps over slow connections. Local images are NOT problematic at all, and BitmapFactory.decodeResource() is certainly not better than getResources().getDrawable() since the latter pretty much uses the former :)

[android-developers] Re: Drawable doesn't load sometimes

2008-11-12 Thread blindfold
Interesting. In case this Android bug/feature not only applies to input streams, this might also explain why I no longer had memory related crashes on the G1 after recently switching to using BitmapFactory.decodeResource(getResources() instead of getResources ().getDrawable() to retrieve

[android-developers] Re: Drawable doesn't load sometimes

2008-11-11 Thread Romain Guy
This is a known bug. Here is a workaround: in = new BufferedInputStream(new URL(getUrl(size)).openStream(), IO_BUFFER_SIZE); final ByteArrayOutputStream dataStream = new ByteArrayOutputStream(); out = new

[android-developers] Re: Drawable doesn't load sometimes

2008-11-11 Thread Obormot
It did help! Thanks a lot! Of course, I now create a bunch of unnecessary objects, but hope it'll be fixed soon... On Nov 11, 10:30 pm, Romain Guy [EMAIL PROTECTED] wrote: This is a known bug. Here is a workaround:                     in = new BufferedInputStream(new