Is there any way to call method when main thread of application (UI thread) is finished ? I read about onTerminate()
method in Application
class, but there is written :
This method is for use in emulated process environments. It will never be called on a production Android device, where processes are removed by simply killing them; no user code (including this callback) is executed when doing so.
Are any alternatives ?