Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Move to JobIntentService #9

Merged
merged 4 commits into from
Mar 5, 2018
Merged

Move to JobIntentService #9

merged 4 commits into from
Mar 5, 2018

Conversation

rogerhu
Copy link
Member

@rogerhu rogerhu commented Mar 5, 2018

  • IntentService -> JobIntentService

    • For API 26 and above, this will dispatch tasks through the JobScheduler. For older versions, it will use IntentServices under the covers.
  • Fix crashing when dispatching AlarmManager dispatching since we are passing around the receiver reference -- instantiate it whenever we need to create one with setupServiceReceiver().

  • AlarmManager doesn't seem to fire except after every 60000 (60 seconds) -- this seems to be have changed since API 19 and the IDE complains to you if you try to set an exact timer.

Roger Hu added 4 commits March 4, 2018 17:01
For API 26, this will use the JobScheduler to manage stuff.
…ingIntent to MySimpleService causes a NPE. Create the reference on the receiver side.
@nesquena nesquena merged commit 8b47357 into codepath:master Mar 5, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants