title: Problem working with sensor - accelerometer
body: <p>I have a Galaxy Tab 1000.</p>
  
  <p>I am trying to write a code, that will identify ANY movement.</p>
  
  <p>I have version 2.2 on the phone.</p>
  
  <p>This is the oncreate code.</p>
  
  <pre><code>
  OnCreate()
      mySensorManager = (SensorManager) getSystemService(Context.SENSOR_SERVICE); 
          mySensorManager.registerListener(mySensorEventListener, mySensorManager
                  .getDefaultSensor(Sensor.TYPE_ACCELEROMETER),
                  SensorManager.SENSOR_DELAY_NORMAL); // 
  </code></pre>
  
  <p>This is the sensor onsensorchanged implementation (very simple I think) but not working</p>
  
  <pre><code>
  if (event.sensor.getType() == SensorManager.SENSOR_ACCELEROMETER) // Do WORK
  </code></pre>
  
  <p>The event.sensor.getType() returns 1 </p>
  
  <p>If I do: getSensorList(Sensor.TYPE_ALL);
  I get sensors compass, compass, BMA150 (accel), temp, magnet, proximity, light and Gyro. </p>
  
  <p>(weird - I thought it's only up in 3.0)</p>
  
  <p>Please advise, how can I get motion detection on the phone.</p>
  
  <p>thanks</p>
  
  <hr>