Android execute a function after 1 hour

前端 未结 3 543
太阳男子
太阳男子 2020-12-19 16:09

I have an android application where I am storing user\'s data on database when he/she activates the app. My app requires the user to stop the application manually in order t

3条回答
  •  佛祖请我去吃肉
    2020-12-19 16:52

    Try this way,hope this will help you to solve your problem.

    new Timer().scheduleAtFixedRate(task, after, interval);
    

提交回复
热议问题