title duration creator
Building a JobScheduler
1:30
name city
Alan Caceres
NYC

Build a JobScheduler to update some data in our apps

Introduction

Note: This should be done independently

We've gone over implementing the different components a JobScheduler needs to perform background tasks under certain requirements. There are other requirements that we could have given our JobScheduler to run tasks under more strict guidelines. A major feature of JobScheduler that we can take advantage of in our apps is batching various jobs together to run under our requirements. Effectively, saving the user's battery life / data usage.

In this lab, you will create multiple JobServices to update various pieces of info in your app.

Exercise


Minimum Requirements

  • Create at least 2 jobs that update two different pieces of information under the same constraints

  • Create a third job that updates a third piece of information under a different constraint.

  • Display both the data prior to the job running and the data that is replacing it after the job runs. If the job has not run yet, show nothing for the replacement data.

Bonus

  • Update an ImageView with an acceptable random image from the Internet, under different job constraints
  • Use the CalendarContract content provider to update another view with an event that is created. (Provide the title of the event)

Deliverable

You will need to create a new Android project for this lab.

A working application that meets the requirements above.


ADDITIONAL RESOURCES