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 android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
No comments:
Post a Comment