2016-05-13 6 views

Antwort

0
SensorManager sm = (SensorManager)getSystemService(SENSOR_SERVICE); 

if (sm.getDefaultSensor(Sensor.TYPE_SIGNIFICANT_MOTION) != null) { 
    Log.d(TAG, "Sensor is available"); 
} 
+0

Dank ... at-dest sollte es in der simulator..isn't vorhanden sein ..? – Vaibhav