Zeev Goldstein Well-Known Member Licensed User Longtime User Nov 27, 2017 #1 hello is there a way to completely stop app execution ? all options i tried including this code Code: Dim jo As JavaObject jo.InitializeContext jo.RunMethod("finishAffinity", Null) Activity.Finish doesn't really stop the app i want something that will permanently end the app's ececution thanks
hello is there a way to completely stop app execution ? all options i tried including this code Code: Dim jo As JavaObject jo.InitializeContext jo.RunMethod("finishAffinity", Null) Activity.Finish doesn't really stop the app i want something that will permanently end the app's ececution thanks
Jmu5667 Well-Known Member Licensed User Longtime User Nov 27, 2017 #2 Maybe shut down all services, cancel all scheduled callbacks, end current activity.... Upvote 0
Emme Developer Well-Known Member Licensed User Longtime User Nov 27, 2017 #3 Code: ExitApplication Upvote 0
Zeev Goldstein Well-Known Member Licensed User Longtime User Nov 27, 2017 #4 thanks will try ExitApplication Upvote 0
Zeev Goldstein Well-Known Member Licensed User Longtime User Nov 27, 2017 #5 ExitApplication did the job thank you all Upvote 0
udg Expert Licensed User Longtime User Nov 27, 2017 #6 From an old post by @Erel : "The OS will treat your app as if it has crashed when you call ExitApplication. In some cases it will try to restart it automatically." Upvote 0
From an old post by @Erel : "The OS will treat your app as if it has crashed when you call ExitApplication. In some cases it will try to restart it automatically."
Zeev Goldstein Well-Known Member Licensed User Longtime User Nov 27, 2017 #7 udg said: From an old post by @Erel : "The OS will treat your app as if it has crashed when you call ExitApplication. In some cases it will try to restart it automatically." Click to expand... well it didn't so it looks like it is all ok any other suggestions ? Upvote 0
udg said: From an old post by @Erel : "The OS will treat your app as if it has crashed when you call ExitApplication. In some cases it will try to restart it automatically." Click to expand... well it didn't so it looks like it is all ok any other suggestions ?
Jmu5667 Well-Known Member Licensed User Longtime User Nov 27, 2017 #8 Zeev Goldstein said: well it didn't so it looks like it is all ok any other suggestions ? Click to expand... What does your app do ? Upvote 0
Zeev Goldstein said: well it didn't so it looks like it is all ok any other suggestions ? Click to expand... What does your app do ?
Zeev Goldstein Well-Known Member Licensed User Longtime User Nov 27, 2017 #9 mainly it is a financial data processor Upvote 0
Jmu5667 Well-Known Member Licensed User Longtime User Nov 27, 2017 #10 Have you solved your issue ? Upvote 0
Zeev Goldstein Well-Known Member Licensed User Longtime User Nov 27, 2017 #11 i think i did but udg says that the os will treat my app as crashed if i use exitapplication so i asked if there is another way to do that ? on another topic if i may i download a text file - now i do that with okhttputils2 - file is downloaded filne but how do i save it as a text file ? here is my code the url is of course set prior using it Code: j.Initialize("", Me) j.Download("prmFileURL") Wait For (j) JobDone(j As HttpJob) If j.Success Then 'here i need to save it as a simple text file Else End If j.Release Upvote 0
i think i did but udg says that the os will treat my app as crashed if i use exitapplication so i asked if there is another way to do that ? on another topic if i may i download a text file - now i do that with okhttputils2 - file is downloaded filne but how do i save it as a text file ? here is my code the url is of course set prior using it Code: j.Initialize("", Me) j.Download("prmFileURL") Wait For (j) JobDone(j As HttpJob) If j.Success Then 'here i need to save it as a simple text file Else End If j.Release
Zeev Goldstein Well-Known Member Licensed User Longtime User Nov 27, 2017 #12 oh my god how silly i am... these new functions are so much more simple got it all working... sorry for pesting you guys... Upvote 0
oh my god how silly i am... these new functions are so much more simple got it all working... sorry for pesting you guys...