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

Apps Timers

Discussion in 'Android Development' started by priv8dan, Aug 25, 2010.

  1. priv8dan

    priv8dan Lurker
    Thread Starter
    Rank:
    None
    Points:
    25
    Posts:
    3
    Joined:
    Aug 25, 2010

    Aug 25, 2010
    3
    0
    25
    Canada
    Hello everyone,

    Which timer function is easier to work with in self developed app? The one used in Java or importing the one from android.os.CountDownTimer? I want to use it in a current program I am writing that counts down until something is pressed correctly. Please help!
     

    Advertisement

  2. jonbonazza

    jonbonazza Android Expert
    Rank:
    None
    Points:
    163
    Posts:
    1,930
    Joined:
    Jul 13, 2010

    Jul 13, 2010
    1,930
    457
    163
    Male
    What kind of timer do you need? Do you need something to happen after a certain amount of time?
     
  3. priv8dan

    priv8dan Lurker
    Thread Starter
    Rank:
    None
    Points:
    25
    Posts:
    3
    Joined:
    Aug 25, 2010

    Aug 25, 2010
    3
    0
    25
    Canada
    yes, it's a two player game, when the timer runs down to 0 it changes turns and continues back and fourth...
     
  4. jonbonazza

    jonbonazza Android Expert
    Rank:
    None
    Points:
    163
    Posts:
    1,930
    Joined:
    Jul 13, 2010

    Jul 13, 2010
    1,930
    457
    163
    Male
    Why not use a Timer/TimerTask combo?
     

Share This Page

Loading...