On Wed, Jan 25, 2012 at 8:53 AM, jb <[email protected]> wrote: > I guess I found a simple solution: > > Implementing a subclass of android.app.Application and reacting > on public void onTrimMemory (int level). From the documentation: > > "Called when the operating system has determined that it > is a good time for a process to trim unneeded memory > from its process. This will happen for example when it > goes in the background and there is not enough memory > to keep as many background processes running as desired." > > I guess the level public static final int TRIM_MEMORY_COMPLETE > is the best for my purpose. From the documentation: > > Level for onTrimMemory(int): the process is nearing the end > of the background LRU list, and if more memory isn't found soon > it will be killed. Constant Value: 80 (0x00000050) > > Unfortunately only level 14, so that I cannot use it on Android 2.3. > Or is there some compatibility lib? >
No, this is only available on 14+ kris -- 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

