android service using SystemClock.elapsedRealTime() instead of SystemClock.uptimeMillis() works in emulator but not in samsung captivate ?
- by Aleadam
First question here in stackoverflow :)
I'm running a little android 2.2 app to log cpu frequency usage. It is set up as a service that will write the data every 10 seconds using a new thread. The code for that part is very basic (see below).
It works fine, except that it would not keep track of time while the phone is asleep (which, I know, is…