I want to write an application that registers the use of other applications on my phone.
So, for example, I get the time when I logged in to Facebook.
I understand that there is no way to make the broadcast compiler wake up every time Facebook starts. Another way is to have a service that always runs in the background, and checks to start applications and puts it to sleep every second or so, but I think it will speed up my battery.
So what is the best way to do this? is there any magazine i can look at?
source
share