How to unload app from memory when closing the app.

How to unload app from memory when closing the app.
After confirming that the user wants to exit the app, I call "close".
The app remains in memory as shown in the list of recent apps. I can then switch to it and it is in the same state as it was when it closed. Application. Terminate does the same thing.
I want my app to completely unload.
Can someone tell me how to do this?
Delphi CE, Android SDK 25.2.5

Thanks...Dan'l.

Comments

  1. Android application life cycle is not the same as Windows application. It's Android that decide to load/unload/reload the application from memory..if it remain in memory it's just to start it faster next time.
    Note also that your application is not running any more it just stay in memory.

    ReplyDelete
  2. Try to call TAndroidHelper.Activity.finish

    ReplyDelete

Post a Comment