seskindell Active Member Licensed User Longtime User Sep 6, 2018 #1 Using this suggested routine: Dim jo As JavaObject jo.InitializeContext jo.RunMethod("finishAffinity", Null) It closes the window however my app is still running in the background. Any suggestions?
Using this suggested routine: Dim jo As JavaObject jo.InitializeContext jo.RunMethod("finishAffinity", Null) It closes the window however my app is still running in the background. Any suggestions?
seskindell Active Member Licensed User Longtime User Sep 6, 2018 #2 This doesn't work either .. App is still running in the background: Activity.Finish Upvote 0
Cableguy Expert Licensed User Longtime User Sep 6, 2018 #3 Please read the "Activity life cycle" thread (in the forum) and the related chapter in @klaus booklets. The OS itself will terminate (definitively) your app when he needs to (ie running in the background for too long and need to free resources for foreground apps). Upvote 0
Please read the "Activity life cycle" thread (in the forum) and the related chapter in @klaus booklets. The OS itself will terminate (definitively) your app when he needs to (ie running in the background for too long and need to free resources for foreground apps).
seskindell Active Member Licensed User Longtime User Sep 7, 2018 #4 Since 21 .. this will do the job and take the program immediately out of the task bar: Dim jo As JavaObject jo.InitializeContext jo.RunMethod("finishAndRemoveTask", Null) Upvote 0
Since 21 .. this will do the job and take the program immediately out of the task bar: Dim jo As JavaObject jo.InitializeContext jo.RunMethod("finishAndRemoveTask", Null)
Erel B4X founder Staff member Licensed User Longtime User Sep 7, 2018 #5 Please use [code]code here...[/code] tags when posting code. Upvote 0
Semen Matusovskiy Well-Known Member Licensed User Sep 7, 2018 #6 Should be very serious reasons to terminate the program. Take a phone and try to find, at least, one pre-installed program, which terminates itself. If you want to "hide" itself, use moveToBack, which works since API 1 (if I do not make a mistake). Upvote 0
Should be very serious reasons to terminate the program. Take a phone and try to find, at least, one pre-installed program, which terminates itself. If you want to "hide" itself, use moveToBack, which works since API 1 (if I do not make a mistake).