Dim jo As JavaObject
jo.InitializeContext
jo.RunMethod("moveTaskToBack", Array(True))
Return False
This code is work fine below 10 minute, after that when we open the apps again, it back to login screen. i think this because the the apps killed by android os.
Its there other way to pause activity in long time.
Any task that is moved to the background will eventually be killed by the OS.
You can manage the login part, by saving a variable once it is complete, and checking it everytime the program comes to the foreground/relaunched.