[android-developers] Re: Android emulator too snow, unusable

2011-04-07 Thread seanw
Hi, Some random tips: - Make sure to enable the snapshot feature when creating new emulator instances to greatly improve startup time. - When the emulator has started up, turn off animations in the settings screen to improve performance. - Test the parts of your app that aren't tablet specific

[android-developers] Re: Out of memory - despite being way under 16mb

2011-03-01 Thread seanw
On Friday, February 25, 2011 8:12:29 PM UTC, Sheado wrote: ... Dianne - that explains a lot, thank you. Is there any way to get an accurate (bitmap included) picture of the heap in pre-honeycomb builds of an app? Hi, You can use these functions; Runtime.getRuntime().totalMemory()

[android-developers] Behaviour of inPurgable?

2011-03-01 Thread seanw
Hi, Is there any more documentation on the behaviour of inPurgable? http://developer.android.com/reference/android/graphics/BitmapFactory.Options.html#inPurgeable Specifically, I'd like to know what this option does when used to load a medium sized bitmap from the SD card or from APK resources

[android-developers] Re: How to manage the memory when loading lots of bitmaps?

2011-03-01 Thread seanw
Hi, The problem is you're creating a new bitmap every time onDraw is called. As your app can only typically allocate about 16Mb or 24Mb in total in Java, you're going to run out of memory quickly if the onDraw method gets called often. I'm not sure why the set of bitmaps aren't being garbage