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

jquery - Invalid Assignment Left-Hand Side -

javascript - Preserving URL fragment through CAS sign-on -

asp.net mvc - Implementing normal user/pass, Twitter & Facebook auth -