can you post the snippet of code ? Also try this on your device .. $ adb shell getprop | grep heap to known the limitation on the device.
you can probably simulate these values on the emulator and check the behavior without the device. -Dan On Wed, Jun 29, 2011 at 2:29 AM, Raghav Sood <[email protected]> wrote: > Your error clearly states that your app is running out of memory. I don't > know why this is happening only on Samsung devices but maybe you could > modify your app to use less memory to prevent the error. > > > On Wed, Jun 29, 2011 at 2:30 AM, gvd <[email protected]> wrote: > >> I'm getting emails from users (and 1 star comments) complaining that >> my app crashes shortly after startup. At start-up my app uses >> runOnFirstFix which will get the location and center/zoom on it (it's >> uses Google Maps API). What it also does is download an animated GIF >> image that is used as an overlay. >> I did get a few crash reports a while back where I see: >> >> java.lang.OutOfMemoryError: bitmap size exceeds VM budget >> at android.graphics.Bitmap.nativeCreate(Native Method) >> at android.graphics.Bitmap.createBitmap(Bitmap.java:677) >> >> I'm aware that Bitmaps are created on the native heap. >> However, the app works fine on my LG optimus and many other phones. >> The people who actually send me information all seem to be using >> Samsung devices (Samsung Epic, galaxy prevail, Verizon Galaxy Tab, >> Samsung Captivate). >> >> Does anybody have an idea on why this seems to happen on Samsung >> devices? >> >> -- >> 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 > > > > > -- > Raghav Sood > http://www.raghavsood.com/ > http://www.androidappcheck.com/ > http://www.telstop.tel/ > > -- > 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 > -- 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

