Reputation: 6597
When my Android app reaches a specific time (say, 1400 hours) the app should do a specific thing, such as enter a Night Mode. At no other time would the app want to do this, and it seems like a waste to poll for this time. Is there a way to have Android notify my app when this time is reached?
Upvotes: 0
Views: 52
Reputation: 1507
Create a alaram manager and give it a pending intent, this intent will have the code which you want execute at that moment
Upvotes: 1