Android Question Issues with ExitApplication ?

Situ LLC

Active Member
Licensed User
Longtime User
I'm experiencing difficulties terminating an application in B4A. The application leaves some background processes running and they don't terminate until I manually force stop the app. Is there a more forceful alternative to ExitApplication that I can use? Thank you.

Salud
 

teddybear

Well-Known Member
Licensed User
I'm experiencing difficulties terminating an application in B4A. The application leaves some background processes running and they don't terminate until I manually force stop the app. Is there a more forceful alternative to ExitApplication that I can use? Thank you.

Salud
See this.
I guess you would like to remove it from recents screen, try this code
B4X:
Dim jo As JavaObject
jo.InitializeContext
jo.RunMethod("finishAndRemoveTask", Null)
 
Upvote 0

Situ LLC

Active Member
Licensed User
Longtime User
Thanks I wil try
Salud
 
Upvote 0
Top