Use with getSystemService(String) to retrieve a LocationManager for controlling location updates.
1. In the MainActivity.java file, add the below line to the import section.
import android.content.Context;
2. In the MainActivity.java file, add the below line to the onCreate method. This will save the LOCATION_SERVICE to a string named svcName.
String svcName = Context.LOCATION_SERVICE;
3. Compile and run!
Next Recommended Article: How to Declare a LocationManager
Resources:
http://developer.android.com/reference/android/content/Context.html#LOCATION_SERVICE
Next Recommended Article: How to Declare a LocationManager
Resources:
http://developer.android.com/reference/android/content/Context.html#LOCATION_SERVICE