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 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
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[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 Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


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-
 friendly way to handle OutOfMemory exceptions?  Right now, the app
 crashes.

 --
 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
 android-developers+unsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en




-- 
Michael Banzon
http://michaelbanzon.com/

-- 
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
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


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 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 Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


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 would not be getting back a null pointer - you'll get an
OutOfMemoryException as the OP is getting.

-
TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago
transit tracking app for Android-powered devices

-- 
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
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

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 
christopher.vank...@gmail.com mailto: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 would not be getting back a null pointer - you'll get 
an OutOfMemoryException as the OP is getting.


-
TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago 
transit tracking app for Android-powered devices


--
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
android-developers+unsubscr...@googlegroups.com
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 android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en