i try to access the sensormanager, but my application ends in a black screen with a "Activity... is not responding"
this are my lines of code:
Using java Syntax Highlighting
- sManager = (SensorManager)getSystemService( Context.SENSOR_SERVICE );
- sManager.registerListener(sensorListener, sManager, SensorManager.SENSOR_ACCELEROMETER);
- private SensorEventListener sensorListener = new SensorEventListener() {
- public void onAccuracyChanged(Sensor sensor, int accuracy) {
- }
- public void onSensorChanged(SensorEvent e) {
- synchronized (this) {
- System.out.println("shaked");
- }
- }
- };
Parsed in 0.031 seconds, using GeSHi 1.0.8.4
i cant find any tutorial for the 1.5 version of the sensormanager - have you any links or hints for me??
thanks a lot



