Android - Want app to perform tasks every second

后端 未结 4 534
-上瘾入骨i
-上瘾入骨i 2020-12-17 23:28

I\'m trying to get my countdown app to perform its function of updating my current time and date TextView and fire off its MyOnItemSelectedListener every second so that the

4条回答
  •  囚心锁ツ
    2020-12-17 23:41

    You can either use sendMessageAtTime() or postAtTime() to send yourself a message a second in the future, and handle it then.

    For more information.

提交回复
热议问题