Does android support real time events? If so how could they be implemented?

后端 未结 2 977
余生分开走
余生分开走 2021-01-24 20:39

I\'m using Android Studio to develop and application and I\'d like that when a certain moment of time is met the application performs some defined action.

I know I could

2条回答
  •  情歌与酒
    2021-01-24 21:24

    If you need to check some external databases once every X seconds/minutes, then you may consider using a Handler & Runnable with postDelayed() method to achieve what you need.

提交回复
热议问题