Hi, My other post on this subject might show up some time, but it's been over an hour since then so I'm assuming it's lost somewhere.
I get an OutOfMemoryException when I change the orientation on my app 3-4 times. It's a pretty simple application that behaves well as long as I don't change the orientation too often without shutting it down. My activity creates an instance of its Java-based view in onCreate. The view loads 30 or so small images (~2k each, png) when it's created. I've tried setting the activity's reference to the view to null as well as calling System.gc() during onPause to try to clean things up since onCreate gets called on every orientation change, but that doesn't seem to help. GC messages show up in the logs on every orientation change regardless so garbage collection seems to happen in general. Here's a snippet of the stacktrace: ================================= E/dalvikvm-heap( 302): 15872-byte external allocation too large for this process. E/ ( 302): VM won't let us allocate 15872 bytes D/AndroidRuntime( 302): Shutting down VM W/dalvikvm( 302): threadid=3: thread exiting with uncaught exception (group=0x40010e28) E/AndroidRuntime( 302): Uncaught handler: thread main exiting due to uncaught exception E/AndroidRuntime( 302): java.lang.OutOfMemoryError: bitmap size exceeds VM budget E/AndroidRuntime( 302): at android.graphics.BitmapFactory.nativeDecodeAsset(Native Method) E/AndroidRuntime( 302): at android.graphics.BitmapFactory.decodeStream(BitmapFactory.java:290) E/AndroidRuntime( 302): at android.graphics.drawable.Drawable.createFromStream(Drawable.java:635) E/AndroidRuntime( 302): at android.content.res.Resources.loadDrawable(Resources.java:1440) E/AndroidRuntime( 302): at android.content.res.Resources.getDrawable(Resources.java:498) ================================= Any ideas? Thanks, Steve ps - I was checking for my post to show and Groups eventually told me that I was spyware and to enter in info from the captcha, except that the captcha wouldn't show in either Chrome or Firefox. In Firefox, Groups tried to tell me that I didn't have images enabled... So that was a really frustrating wait. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~----------~----~----~----~------~----~------~--~---

