I'm creating an Android kiosk application, a launcher application. The application shows apps that are allowed to be used by the user. I want to prevent the user from opening unwanted application (like recent apps, settings etc). So I've build a service (KioskService.class) which checks if the active activity is on the list of allowed applications. This is done with a Thread (So it checks even if another applciation is opened)
At this moment when an unallowed application is opened I return the kiosk application. What i want is that the previous activity is reopened.
So for example. When I open the Calender application (which is an allowed application) en then I open the setting from the Notification bar, the application needs to return to de Calender activity.
Thanks in advance,
T