Hello
I have an application with the Main activity which is actually kind of a splash screen (but the user has to confirm something there) and after that it turns on another activity (ActivityRol) that is the main one. It seems I cannot actually properly exit the application from either activity, that is end all of them!
If the user is still in Main (so ActivityRol hasn't been called yet) then when the Back key is intercepted and if the user confirms application exit by means of a message box, then the code I've tried is:
Activity.Finish
ExitApplication
This makes everything look like the app just exited, but if I click on its icon to restart it... BLANK PAGE! And yes, I can click the back key again, I get the same message box asking for application exit, so I can "exit" it over and over again!
The same thing happens if the user reaches ActivityRol being called and tries to exit from there, the mechanism is identical.
What is the proper way to actually make this application REALLY exit??
Thank you!
I have an application with the Main activity which is actually kind of a splash screen (but the user has to confirm something there) and after that it turns on another activity (ActivityRol) that is the main one. It seems I cannot actually properly exit the application from either activity, that is end all of them!
If the user is still in Main (so ActivityRol hasn't been called yet) then when the Back key is intercepted and if the user confirms application exit by means of a message box, then the code I've tried is:
Activity.Finish
ExitApplication
This makes everything look like the app just exited, but if I click on its icon to restart it... BLANK PAGE! And yes, I can click the back key again, I get the same message box asking for application exit, so I can "exit" it over and over again!
The same thing happens if the user reaches ActivityRol being called and tries to exit from there, the mechanism is identical.
What is the proper way to actually make this application REALLY exit??
Thank you!