October 2018
Intermediate to advanced
464 pages
15h 17m
English
First, we'll add the necessary permissions to the Android Manifest, then we'll modify the TextView element to include an ID. Finally, we'll add a method to receive the last known location callback. Open the Android Manifest and follow these steps:
<uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION"/>

implementation 'com.google.android.gms:play-services:12.0.1'