Re: [android-developers] OutOfMemory exceptions

2011-09-11 Thread Greg Donald
On Sat, Sep 10, 2011 at 2:31 AM, Michael Banzon mich...@banzon.dk wrote: Do you know what causes the OutOfMemoryException? My general advise would be to try and avoid that... Yeah, 'cause apps shouldn't have graphics. -- Greg Donald -- You received this message because you are subscribed

[android-developers] OutOfMemory exceptions

2011-09-10 Thread bob
How do I tell how much RAM my MetroPCS LG Optimus uses? I keep getting OutOfMemory exceptions. Also, what is the most user- friendly way to handle OutOfMemory exceptions? Right now, the app crashes. -- You received this message because you are subscribed to the Google Groups Android

Re: [android-developers] OutOfMemory exceptions

2011-09-10 Thread Michael Banzon
Do you know what causes the OutOfMemoryException? My general advise would be to try and avoid that... On Sat, Sep 10, 2011 at 9:20 AM, bob b...@coolgroups.com wrote: How do I tell how much RAM my MetroPCS LG Optimus uses? I keep getting OutOfMemory exceptions.  Also, what is the most user-

Re: [android-developers] OutOfMemory exceptions

2011-09-10 Thread Christopher Van Kirk
Check that the pointer returned to you when you allocate memory is non-null. If it's null, you're out of memory. If you're even getting close to the memory limit, though, you're doing something very wrong. On 9/10/2011 3:20 PM, bob wrote: How do I tell how much RAM my MetroPCS LG Optimus

Re: [android-developers] OutOfMemory exceptions

2011-09-10 Thread TreKing
On Sat, Sep 10, 2011 at 2:36 AM, Christopher Van Kirk christopher.vank...@gmail.com wrote: Check that the pointer returned to you when you allocate memory is non-null. If it's null, you're out of memory. You don't use pointers or allocate memory directly in Java and even if you did you

Re: [android-developers] OutOfMemory exceptions

2011-09-10 Thread Christopher Van Kirk
Quite right. Sorry, thought this was on a different list. I still think he (or she) needs to review memory usage. Running into the memory limit is a good indicator of a bad design. On 9/11/2011 3:56 AM, TreKing wrote: On Sat, Sep 10, 2011 at 2:36 AM, Christopher Van Kirk