I want to create a service (or a broadcast)in my application that detect when the user select any application in the device. So my service will detect that a new application was started.
Is that possible?
I want to create a service (or a broadcast)in my application that detect when the user select any application in the device. So my service will detect that a new application was started.
Is that possible?
You should use getRunningAppProcesses()
to load the list of running apps and check the variation in this list.
see this link
another solution is to analyze logcat output
see first answer to this question