I am trying to develop a lock kind of application.
First I am displaying list of all the applications installed in the device, and asks users to choose on which applications lock should be enabled.
After user chooses the app, I need to call a lock screen before opening the application.
For example if user chooses to apply lock on gallery I need to start a my app screen for lock before he enters the gallery.
I was able to list all the installed apps but I am unable to detect when the user selects any other app. I have written a service but I can't able to call my app whenever user selects any other application on the device
I want to know how to call my application whenever user selects any other app, How can I detect that ? Thanks in advance