I have a requirement that whenever an app is opened by user, an event should be generated based on which I have to do some processing in my app. I realize that android do not broadcast that event. Hence, I am stuck and looking for a work around.
I have also come across some apps that do the similar thing such as:
Avast Mobile Security: Scans the app when it is opened.
Vault: Shows password keypad when a locked app is opened.
Can anyone tell me how these apps are detecting the app opening event or point me in right direction to do.
I have previously done some Windows API Hooking and not sure if I could use this technique in android also. I have come across some runtime code injection frameworks like "Cydia Substrate" and "Xposed". Can these things solve my problems?