Strict Standards: Non-static method utf_normalizer::nfc() should not be called statically in /www/htdocs/w006661d/anddev/includes/utf/utf_tools.php on line 1781
[phpBB Debug] PHP Notice: in file /bbc_download.php on line 73: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)
[phpBB Debug] PHP Notice: in file /bbc_download.php on line 74: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)
[phpBB Debug] PHP Notice: in file /bbc_download.php on line 75: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)
[phpBB Debug] PHP Notice: in file /bbc_download.php on line 76: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)
[phpBB Debug] PHP Notice: in file /bbc_download.php on line 77: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)
[phpBB Debug] PHP Notice: in file /bbc_download.php on line 78: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)
import android.app.Activity; import android.content.Context; import android.hardware.Sensor; import android.hardware.SensorEvent; import android.hardware.SensorEventListener; import android.hardware.SensorManager; import android.os.Bundle; import android.widget.TextView; public class Boussole extends Activity implements SensorEventListener { float pitch = 0; float roll = 0; float heading = 0; Compass compass; SensorManager sensorManager; private void updateOrientation(float mRoll, float mPitch, float mHeading){ roll = mRoll; pitch = mPitch; heading = mHeading; if (compass != null){ compass.setBearing(heading); compass.setPitch(pitch); compass.setRoll(roll); compass.invalidate(); } } @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.main); //setContentView(R.layout.secondview); compass = (Compass)this.findViewById(R.id.compassView); sensorManager = (SensorManager)getSystemService(Context.SENSOR_SERVICE); updateOrientation(0, 0, 0); //SensorEvent event = null; //getOrientation(event.values[SensorManager.DATA_X], event.values[SensorManager.DATA_Y], event.values[SensorManager.DATA_Z]); //afficher(event.values[SensorManager.DATA_X]); //afficher(event.values[SensorManager.DATA_Y]); //afficher(event.values[SensorManager.DATA_Z]); } protected void onResume() { super.onResume(); sensorManager.registerListener(this, sensorManager.getDefaultSensor(Sensor.TYPE_ORIENTATION), SensorManager.SENSOR_DELAY_FASTEST); } protected void onStop() { sensorManager.unregisterListener(this); super.onStop(); } @Override public void onAccuracyChanged(Sensor sensor, int accuracy) { } @Override public void onSensorChanged(SensorEvent event) { updateOrientation(event.values[SensorManager.DATA_X], event.values[SensorManager.DATA_Y], event.values[SensorManager.DATA_Z]); } /*public float[] getOrientation(float mRoll, float mPitch, float mHeading){ float[] resultat = {0,0,0}; resultat[1] = mRoll; resultat[2] = mPitch; resultat[3] = mHeading; return resultat; } public void afficher(float valeur){ TextView tv= new TextView(this); tv.setText(Float.toString(valeur)); setContentView(tv); }*/ }