Parsing a string in clock format into int
I'm new at learning Android, and working on a simple timer program. As of
now, I have the code set up to create the timer from a passed in int. The
design has a start button that will start the timer and refresh the
TextView every second with the new time.
Right now, I'm working on pausing and restarting the timer. My idea is
canceling the CountDownTimer when the user clicks pause and getting the
new value for a new CountDownTimer from the TextView that is displaying
the time when the user paused (Display as 00:00).
How do I parse the string from the TextView, getting the separate numbers
for minutes and seconds?
No comments:
Post a Comment