Memory is only freed when it is applicable for garbage collection. You should profile your application and see where you are holding onto references which keep your objects from being freed.
Stefan 2011/1/18 Sapna Srivastav <[email protected]>: > Hi to all > > I am developing an application that will run 24x7 in which I used an > Alarm Manager for executing the application on every 1 minute by > setRepeating() method having entry of android:process=":remote" in > manifest.xml. The application size on heap increases gradually, I > called onDestroy(), finish() ,Runtime.getRuntime().gc and System.gc() > methods for cleaning the heap but it doesn't work. The heap size, that > I get from Debug.getHeapAllocatedSize(), is continuously increasing. > > How can I free the allocated memory when application is not running? > > Please help me to manage the memory of application. > > Thanks in adv > > -- > 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

