How to Get the Context.LOCATION_SERVICE

public static final String LOCATION_SERVICE was added in API level 1
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;