My own stopwatch in Android -


i developing simple stopwatch problem when user presses home button thread witch calculates time freezes how can avoid make thread run in background ?

a simpler solution record start time of stopwatch using system.currenttimemillis. when activity onresume or onstart() called, update watch show time elapsed time you've saved.


Comments

Popular posts from this blog

java - Play! framework 2.0: How to display multiple image? -

gmail - Is there any documentation for read-only access to the Google Contacts API? -

php - Controller/JToolBar not working in Joomla 2.5 -