开发者

Android : alarmManager and Service

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜