1. Check out our companion app, Forums for Android! Download from Google Play

time help

Discussion in 'Android Apps & Games' started by mathkid95, Nov 10, 2010.

  1. mathkid95

    mathkid95 Member
    Thread Starter

    May 29, 2010
    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