I want to run some code when an app is launched, so my broadcast receiver has to be notified when user open any app.
Is there any way to do it?
Probably you can have some trigger from a method like onCreate etc which would be the first method to be hit whenever your app is launched.
onCreate