29. JobScheduler的用途與地位?
● There are several APIs that your app can use to schedule background
work. Chief among these options is JobScheduler
● In most cases, apps can work around these limitations by using
JobScheduler jobs.
● Android 8.0 offers several improvements to JobScheduler that make it
easier to replace services and broadcast receivers with scheduled
jobs
Schedule jobs intelligently | Android Developers
38. WorkManager能幹嘛?
● Support for both asynchronous one-off and periodic tasks
● Support for constraints such as network conditions, storage space, and
charging status
● Chaining of complex work requests, including running work in parallel
● Output from one work request used as input for the next
● Handles API level compatibility back to API level 14
● Works with or without Google Play services
● Follows system health best practices
● LiveData support to easily display work request state in UI
89. 參考資料
● Youtube:Android Developers
○ Android Jetpack: easy background processing with WorkManager (Google I/O '18)
● Codelab
○ Background Work with WorkManager
● Medium
○ Scheduling jobs like a pro with JobScheduler
○ Android Scheduling Background Services( A developer’s nightmare)
○ Exploring Jetpack: The power of chains in the WorkManager APIs
○ Let’s Work manager do all the Background processing