You application is using too much memory. For bitmaps, it doesn't really matter how big they are when compressed, it's really the decompressed size that matters. 300kB each is a lot.
JBQ On Sun, Dec 7, 2008 at 9:01 PM, Prashant <[EMAIL PROTECTED]> wrote: > > Hi , > > I have created an application in which i m using gradients as > backgrounds for layouts and buttons and images(13 kb each ) on each > screen , > > On repetitive rendering from one screen to another , my application > gives an exception causing "Force Clase Dailog to appear" , in log cat > it shows something like this: > > 12-08 10:10:51.688: ERROR/SurfaceFlinger(53): not enough memory for > layer bitmap size=307200 > 12-08 10:10:51.727: ERROR/SurfaceFlinger(53): createNormalSurfaceLocked > () failed (Out of memory) > 12-08 10:10:51.738: WARN/WindowManager(53): OutOfResourcesException > creating surface > 12-08 10:10:51.748: WARN/WindowManager(53): No leaked surfaces; > killing applicatons! > 12-08 10:10:51.767: WARN/ActivityManager(53): Killing processes for > memory at adjustment 0 > 12-08 10:10:51.767: WARN/ActivityManager(53): Killing for memory: > ProcessRecord{434bd5b8 198:com.persistent.linkbuddy.ui/10030} (adj 0) > 12-08 10:10:51.779: WARN/WindowManager(53): Looks like we have > reclaimed some memory, clearing surface for retry. > 12-08 10:10:51.779: WARN/WindowManager(53): Due to memory failure, > waiting a bit for next layout > > what is the problem? > > Thanks in advance > Prashant > > > > --~--~---------~--~----~------------~-------~--~----~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~----------~----~----~----~------~----~------~--~---