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;
http://developer.android.com/reference/android/content/Context.html#SENSOR_SERVICE