I have a RemoteViews that I use with a notification manager to show elapsed 
time from recording start.

in start code I have:

mChronometerBase = SystemClock.elapsedRealtime();
n.contentView.setChronometer(R.id.chrononotify,mChronometerBase , " Time: 
(%s)", true);
nm.notify(myID, n);

the chronometer start as expected from 00.00 and it's ok.

Now from my activity I need to stop it, and I am using:

mChronometerBase = SystemClock.elapsedRealtime();
n.contentView.setChronometer(R.id.chrononotify, chronometer.getBase(), " 
Time: (%s)", false);
nm.notify(myID, n);

but this don't work well, the time is wrong.
How can I stop the timer?
How can I reset again to 00.00 the timer?

Thank you.

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to