14.06.2011

Sensor methods

posted by Karsten

/* * Accelerometer */ public void startSensor(SensorManager sm) { sm.registerListener(this.sensorAccelerometer, sm.getDefaultSensor(Sensor.TYPE_ORIENTATION), SensorManager.SENSOR_DELAY_GAME); } public void removeSensor(SensorManager sm) { sm.unregisterListener(this.sensorAccelerometer); this.sensorAccelerometer = null; }

Share

Place your comment

Please fill your data and comment below.
Name
Email
Website
Your comment