Re: [android-developers] Memory Leaks in application

2011-04-07 Thread TreKing
On Thu, Apr 7, 2011 at 5:16 AM, NURAIZ yousuf_...@yahoo.com wrote: Why our native heap size is increased every time we run the application? Based on the detailed information you provided, I can conclude with confidence that it's because you're using more memory every time you run the

Re: [android-developers] Memory Leaks with a ListView

2010-10-20 Thread Kostya Vasilyev
John, I've seen something similar causing memory leaks, preventing GC from working, although not in Android: public class Item { static HashtablegHash = new Hashtable(); private String key; public Item(String key) { this.key = key; gHash.put(key, this); } public void finalize() {

Re: [android-developers] Memory Leaks

2010-10-18 Thread Daniel Drozdzewski
On Mon, Oct 18, 2010 at 4:58 PM, John Gaby jg...@gabysoft.com wrote: I appear to have a memory leak(s) in my application, and I am trying to get a handle on it by trying to understand more about garbage collection.  I have created the following application. Here I have a class 'MyClass', and

Re: [android-developers] Memory leaks in activities and views

2010-05-17 Thread Romain Guy
There must be something else going on in your app. All standard apps rely on onDestroy() being called and certainly do not do all you mentioned in your message. Be very careful with what you do with the Context. An Activity is a Context and you might be leaking it without knowing it. What you are