报错,出现空指针
mSensorManager = (SensorManager) context
.getSystemService(Context.SENSOR_SERVICE);
在传感器那里空指针
java.lang.NullPointerException: Attempt to invoke virtual method 'java.lang.Object android.content.Context.getSystemService(java.lang.String)' on a null object reference