As you know, making object null makes no actual difference until GC
has been completed.
onTrimMemory  seems to be more about how the app deals with its own
data than android components (activities, services, fragments..).you
may be able to find example code inside of ICS framework source like
below.  (Make sure that class is implementing ComponentCallbacks2 to
override it)   e1 : Clearing cache
datahttps://bitbucket.org/Vork/android_packages_apps_contacts/src/30f6b22450a7/src/com/android/contacts/ContactPhotoManager.java
e2 : Memory(of lib) handling by calling native
callhttp://www.oschina.net/code/explore/android-4.0.1/core/java/android/webkit/WebView.java

On Jan 2, 2:39 pm, LeeJJ <[email protected]> wrote:
> When my app receivedonTrimMemorycallback, what am i to do?
>
> i wrote some code for release java object, but that's no effect. for
> total free Memory.
>
> 1. How to use theonTrimMemoryinterface?
> 2. What's benifit when an app implementonTrimMemoryinterface?
>
> i'm sorry my poor english. Thank you for reading.

-- 
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

Reply via email to