开发者

Android : alarmManager and Service

开发者 https://www.devze.com 2023-03-29 16:07 出处:网络
I can start a S开发者_StackOverflow社区ervice with an AlarmManager and one PendingIntent ? I want that, when in my application there are not more data, the Service go down and the AlarmManager restart

I can start a S开发者_StackOverflow社区ervice with an AlarmManager and one PendingIntent ? I want that, when in my application there are not more data, the Service go down and the AlarmManager restart it after X minutes. It's possibile ?


If you pass the AlarmManager flags ELAPSED_REALTIME_WAKEUP or ELAPSED_REALTIME they can be used to deliver intents when the phone is in sleep, or when you manually wake up the phone.

0

精彩评论

暂无评论...
验证码 换一张
取 消