J Juzer Hussain Active Member Licensed User Longtime User Oct 14, 2015 #1 Hi, In my app in Main form I am downloading a small string to check internet connection. In next screen I am connecting to my site using login details.In both the forms thru HtpUtils2 module.Upon successful login a 3rd activity is called.I am closing the app thru close button in main form where process global ForceClose is set to true ForceClose=True StopService(Me) Activity.Finish In other activity resume i have written If Main.ForceClose =True Then StopService(Me) Activity.Finish ExitApplication End If still the app doesnt close it keeps opening last activity indefinetly. Can anyone Pls suggest how to do this. Juzer
Hi, In my app in Main form I am downloading a small string to check internet connection. In next screen I am connecting to my site using login details.In both the forms thru HtpUtils2 module.Upon successful login a 3rd activity is called.I am closing the app thru close button in main form where process global ForceClose is set to true ForceClose=True StopService(Me) Activity.Finish In other activity resume i have written If Main.ForceClose =True Then StopService(Me) Activity.Finish ExitApplication End If still the app doesnt close it keeps opening last activity indefinetly. Can anyone Pls suggest how to do this. Juzer
Erel B4X founder Staff member Licensed User Longtime User Oct 14, 2015 #2 Don't call ExitApplication. Let Android kill the process. I don't think that this code was executed. The process would not have continued after the ExitApplication call. Upvote 0
Don't call ExitApplication. Let Android kill the process. I don't think that this code was executed. The process would not have continued after the ExitApplication call.