android - Application.onLowMemory() not invloked -


I have created my own application class.

I try to debug it and the code stops in the application .onCreate () but does not stop on low memory.

To test the scenario, I open many other high memory applications.

What I see is that the debug session ends (in the eclipse) and some of my stable variables are released - this indicates that the process is finished.

Not only the breakpoint of the debug method @ E (...) line and it also does not look right.

Why was not any method implemented?

Thank you.

From:

While this is the correct point at which it will not be defined, it will usually be around time when all the background processes have been killed < / P>

At the point it is called that has not been defined, it may never have to call.

Generally Android is free to kill your app whenever you want, as long as there is no background. You should rely only on the methods of life therapy (such as Ultimate, Onstop, On Destroy) which specifically tell that they are guaranteed to be asked for any necessary cleaning.

Comments