I have an activity with :
public class MyActivity extends Activity implements SensorEventListener, GestureDetector.BaseListener
I implement the functions
@Override
public boolean onGenericMotionEvent(MotionEvent event)
{
Log.d("MOTION", "MOTION DETECTED");
}
@Override
public void onSensorChanged(SensorEvent event) {
Log.d("MOTION", "SENSOR DETECTED");
}
onGenericMotionEvent works fine, but onSensorChanged is never called, am I missing something ?