December 2018
Intermediate to advanced
416 pages
10h 30m
English
Once we have scheduled the job, we can write the code to specify what the job should do, which is track the location of a user. To do this, we will use the LocationManager, which is a SystemService. With the LocationManager, we can either request a single location update or we can subscribe to location updates. In this case, we want to subscribe to location updates.
We will start by creating an instance of the ILocationRepository interface that we will use to save the locations to the SQlite database. Let's set this up by going through the following steps:
Read now
Unlock full access