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.
精彩评论