To exit and close my B4A application, I have tried all methods I can think of like exitApplication etc. But the app is always still there waiting pounce back. Can someone kindly advise .. greatly appreciated
As far as I know, exitApplication closes the application when applied from the only one active view, try to close every activity with acttivity.finish then you can apply exitApplication from the last one.
Hello.
do not use exitApplication, android will treat it as if the application has been suspended. Use activity.finish and let the system close the application. Do not fight it.
As far as I Know, the App only "dies" when the OS decides to "kill" it in order to free resources.
All other "methods" only let the OS know that the app is no longer in active use.
The method that I suggested closes all the activities in case the app has opened more than one and prevents the operating system from restarting the app believing that it has been interrupted by mistake.
But it always remains in the task manager except you set it to not appear entirely on the task manager Grom Manifest.