This is my function.
public void onSensorChanged(SensorEvent event)
{
if (event.sensor.getType() == Sensor.TYPE_LINEAR_ACCELERATION)
{
//DO A JOB...
}
}
My question is what happens if onSensorChanged()
is called while it is finishing the current job?