1. Download our Official Android App: Forums for Android!

time help

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

  1. mathkid95

    mathkid95 Newbie
    Thread Starter
    Rank:
    None
    Points:
    15
    Posts:
    21
    Joined:
    May 29, 2010

    May 29, 2010
    21
    0
    15
    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??
     

    Advertisement

Share This Page

Loading...