1. HUGE Androidforums.com UPDATE! Learn what's new (and download the new app!)
    Dismiss Notice

time help

Last Updated:

  1. mathkid95

    mathkid95 Member This Topic's Starter

    May 29, 2010
    Likes Received:
    Hi, I have a question on the times in android.

    Say I want to get the current time with milliseconds too, and it displays it. I then have a button which, when I click, opens up a new screen. If I stay on the new screen for some time, then click on the back key, showing the previous screen, the time should be updated to the millisecond.

    so basically,

    1. show the current time with millisecs
    2. Once you click on the button and open another activity/screen, stay on that for let's say, 3 min.
    3. Click the back key on the emulator/phone, and open up the previous time screen. That time needs to increment by 3 minutes.

    I tried using SystemClock, but it didn't work. Can you please help me??


Share This Page