MarkusR Well-Known Member Licensed User Longtime User Jun 5, 2018 #1 hello, me saw that if me using Activity.Finish in main Activity and click then at the app icon again the Activity will created again and all variables here are still there with used values before i closed the activity. Code: Copy Sub Process_Globals 'These global variables will be declared once when the application starts. 'These variables can be accessed from all modules. how can i end the app correct and free this process for a clean start?
hello, me saw that if me using Activity.Finish in main Activity and click then at the app icon again the Activity will created again and all variables here are still there with used values before i closed the activity. Code: Copy Sub Process_Globals 'These global variables will be declared once when the application starts. 'These variables can be accessed from all modules. how can i end the app correct and free this process for a clean start?
Star-Dust Expert Licensed User Longtime User Jun 5, 2018 #2 SDK 16+ Code: Copy Dim jo As JavaObject jo.InitializeContext jo.RunMethod("finishAffinity", Null) Upvote 0
MarkusR Well-Known Member Licensed User Longtime User Jun 5, 2018 #3 Star-Dust said: "finishAffinity" Click to expand... thank you. i read it finished all Activitys, does it clear this Process_Globals too? i will test later. Upvote 0
Star-Dust said: "finishAffinity" Click to expand... thank you. i read it finished all Activitys, does it clear this Process_Globals too? i will test later.
walterf25 Expert Licensed User Longtime User Jun 5, 2018 #4 MarkusR said: thank you. i read it finished all Activitys, does it clear this Process_Globals too? i will test later. Click to expand... You can also reset all variables before you close the Activity. Regards, Walter Upvote 0
MarkusR said: thank you. i read it finished all Activitys, does it clear this Process_Globals too? i will test later. Click to expand... You can also reset all variables before you close the Activity. Regards, Walter