Hi, I think you should check how you are creating the references because in java we put whole responsibility on GC but by mistake we make some very bad strong references which can lead to outOfMemory exceptions. so try using weak references, have a look on below links
http://developer.android.com/resources/articles/avoiding-memory-leaks.html http://stackoverflow.com/questions/3243215/how-to-use-weakreference-in-java-and-android-development http://stackoverflow.com/questions/5002350/android-weak-reference-of-inner-class On Sep 11, 2:42 am, Christopher Van Kirk <[email protected]> wrote: > 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 > > <[email protected] <mailto:[email protected]>> > > 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 [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

