How To Add Chronometer Inside Service?
I am triying to add Chronometer inside service and fetch value.But i am not getting correct Chronometer value. public class NewLocationUpdateService extends Service { Chronom
Solution 1:
I think you should remove the mod 60.here is an example.
long timeWhenStopped = SystemClock.elapsedRealtime() - chronometer.getBase();
int seconds = (int) timeWhenStopped / 1000;
Post a Comment for "How To Add Chronometer Inside Service?"