Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- sensorMgr = (SensorManager)getSystemService(Context.SENSOR_SERVICE);
- List<Sensor> sensors = sensorMgr.getSensorList(Sensor.TYPE_ALL);
- sAccelerometer = sensorMgr.getDefaultSensor(Sensor.TYPE_ACCELEROMETER);
- float acc_max = sAccelerometer.getMaximumRange();
Add Comment
Please, Sign In to add comment