Notify when any app launched irrespective of launcher app we are using

98 Views Asked by At

How can i notify or know when any android app get launched?

If i want to know the app launch state i can know if i put log in package/apps/launcher/...../Launcher.java, but control do not come here if we are using another launcher app. I searched a lot but i did not find solution. They are saying we can not get app launch events in android.

Please tell me the process in framework when any app launched or resumed or destroyed. I have seen some solution like reading Log, but that is restricted from jellybean and that is not at all my intention Apps like app lock are doing this work even in Jellybean,kitkat and higher Any help would be appreciated.

1

There are 1 best solutions below

1
Mostafa Darwish On

You can use the BroadcastReceiver in order to broadcast any event like the onCreate or onstart event that you want to broadcast it. you can check this link for more information http://developer.android.com/reference/android/content/BroadcastReceiver.html