Android count down timer in background

后端 未结 3 1292
轮回少年
轮回少年 2020-12-06 14:50

I have an Android app with manage a countdowntimer (class CountDownTimer) that it is shown in app screen, to show how much time left to arrive 00:00.

My problem now

3条回答
  •  余生分开走
    2020-12-06 15:18

    First off, You need to use a Handler to operate the timer, but check out this great post to see if it helps:

    How to set a timer in android

    Android Developer Resources touch on this topic as well:

    http://developer.android.com/resources/articles/timed-ui-updates.html

提交回复
热议问题