I want to know is there any way to know an app is going to start, I'm planning to write a simple app that logs usage time of app since its start to its stop, Then I can log time of that app was is foreground. Any advice will be helpful.
Asked
Active
Viewed 30 times
0
-
1Possible duplicate of [Android, Detect when other apps are launched](http://stackoverflow.com/questions/3290936/android-detect-when-other-apps-are-launched) – Daniel Zolnai Apr 03 '16 at 08:27
-
Will not work from JellyBean and above. READ_LOGS permission is now reserved for system apps only – Saber Amani Apr 03 '16 at 08:30
-
then probably you will need root access to do so – Vivek Mishra Apr 03 '16 at 09:07