March 2016
Intermediate to advanced
428 pages
9h 2m
English
If your application needs frequent location updates, your application can request periodic updates. This recipe will demonstrate this using the requestLocationUpdates() method from GoogleApiClient.
Create a new project in Android Studio and call it: LocationUpdates. Use the default Phone & Tablet options and select Empty Activity when prompted for Activity Type.
Since we are receiving updates from the system, we won't need a button for this recipe. Our layout will consist of just the TextView to see the location data. Open the Android Manifest and follow these steps:
<uses-permission android:name="android.permission.ACCESS_FINE_LOCATION"/>
build.gradle ...Read now
Unlock full access