How to Get the the Context.SENSOR_SERVICE

public static final String SENSOR_SERVICE was added in API level 1
Use with getSystemService(String) to retrieve a SensorManager for accessing sensors.

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 SENSOR_SERVICE to a string named svcName

String svcName = Context.SENSOR_SERVICE;

3. Compile and run!

Next Recommended Article: How to Declare a SensorManager

Resources:
Professional Android 4 Application Development by Reto Meier, pg 482
http://developer.android.com/reference/android/content/Context.html#SENSOR_SERVICE