当前位置: 动力学知识库 > 问答 > 编程问答 >

Start an android application at a time chosen from the user

问题描述:

I'd like to do an application that starts at a specified time and that must continue until another specified time (but i want to let the user to change these times inside the application). Is it possible?

网友答案:

To do this you have to create an background service in your app which runs continuously either your app is running or not, and implement a timer or alarm manager to set the time at which you want to open your application and also close the application with the same technique.

分享给朋友:
您可能感兴趣的文章:
随机阅读: