Skip to content

Latest commit

 

History

History
11 lines (5 loc) · 374 Bytes

File metadata and controls

11 lines (5 loc) · 374 Bytes

AndroidSensorTestCode

this is a basic code frame to show the linear acceleration value of the sensor

this same code can be used to obtain the value of other sensors too

linearAcceleration = senseManager.getDefaultSensor(Sensor.TYPE_LINEAR_ACCELERATION);

bychanging the Sensor.TYPE_LINEAR_ACCELERATION to other values , we canobtain the readings of different sensors