I'm developing an application for a museum, I need that application to be the only one the visitors can use.
The administrator of the museum has the possibility to quit this application, by a button, which will ask a password.
I already managed to override the return button. But the Home button is still active. I used this for my main activity:
<action android:name="android.intent.action.MAIN" /> <category android:name="android.intent.category.HOME" /> <category android:name="android.intent.category.DEFAULT" />
This will reload the main activity when the home button is pressed. But, when I try to close the application with my close button, the first instance of my application is closed but not the second one. The admin has to give the password again.
You can imagine if a user presses the home button 10 times, it will be very difficult for the admin to quit.
Is there a way to close all instances of my application at the same time?