mardi 30 décembre 2014

Why Sensor.TYPE_ACCELEROMETER is always running?


Vote count:

0




I am not even moving my phone, but the logcat keeps on showing alot of logs....


It says onSensorChanged, but there is no change in motion, so why does it still run in the background and drains battery for no reason?



public void onSensorChanged(SensorEvent event) {

now = event.timestamp;

x = event.values[0];
y = event.values[1];
z = event.values[2];

Log.e("", "x: " + x + "y: " + y + "z: " + z);
}


What's going on?


Thank you



asked 28 secs ago







Why Sensor.TYPE_ACCELEROMETER is always running?

Aucun commentaire:

Enregistrer un commentaire