I previously works in c# dotnet development, there is Application.exit() type method, which instantly close the app and release the memory.
I find that android “finish()” method which was supposed to do that
but it not doing that, it continue the app and not releasing the memory.
How i can exit my application, so all thread and memory will be released ?
Android has 2 kinds of activities, Activity and ListActivity (extends Activity).
You can extend these two for all your app’s activities being used. Use your new activity base classes to keep a stack of your activities by overriding onCreate() and finish().
In this way when you want to quit, pop your activities off the stack, one by one and call finish.
I know it’s laborious, but it works for me.