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
Post a Comment