Android acelerometer is not working
<p>I'm trying to build an application, and I need use the acelerometer. With the Sensor simulator, the accelerometer is working perfectly, but when I made the apk, the output of the accelerometer not worked. And I'm using a Samsung Exibit 4g XII and this device have accelerometer</p>

<pre><code>public class AcelerometerImp extends Activity implements SensorEventListener {

    StringBuilder builder;
    TextView textView;

    @Override
    public void onCreate(Bundle icicle) {
        super.onCreate(icicle);
        textView = new TextView(this);
        setContentView(textView);
        SensorManager manager = (SensorManager) getSystemService(Context.SENSOR_SERVICE);
        textView.setText( (manager.getSensorList( Sensor.TYPE_ACCELEROMETER ).size() == 0) 
                ? "No hay acelerometro" : manager.getSensorList( Sensor.TYPE_ACCELEROMETER ).get(0).toString()  );
    }

    @Override
    public void onSensorChanged (SensorEvent event){
        builder.setLength(0);
        builder.append("x: " + event.values[0] + ", y: " + event.values[1] + ", z: " + event.values[2]);
        textView.setText(builder.toString());
    }

    @Override
    public void onAccuracyChanged (Sensor sensor, int accuracy){        
    }
}
</code></pre>
