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)
package com.minnamedia.nl.accelerometertest; import java.util.List; import android.app.Activity; import android.content.Context; import android.os.Bundle; import android.hardware.Sensor; import android.hardware.SensorEvent; import android.hardware.SensorEventListener; import android.hardware.SensorManager; import android.widget.TextView; public class accelerometerTest extends Activity { private TextView accText; private SensorManager myManager; private List sensors; private Sensor accSensor; private float oldX, oldY, oldZ = 0f; /** Called when the activity is first created. */ @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.main); accText = (TextView)findViewById(R.id.accText); // Set Sensor + Manager myManager = (SensorManager)getSystemService(Context.SENSOR_SERVICE); sensors = myManager.getSensorList(Sensor.TYPE_ACCELEROMETER); if(sensors.size() > 0) { accSensor = sensors.get(0); } } private void updateTV(float x, float y, float z) { float thisX = x - oldX * 10; float thisY = y - oldY * 10; float thisZ = z - oldZ * 10; accText.setText("x: " + Math.round(thisX) + ";\n y:" + Math.round(thisY) + ";\n z: " + Math.round(thisZ)); oldX = x; oldY = y; oldZ = z; } private final SensorEventListener mySensorListener = new SensorEventListener() { public void onSensorChanged(SensorEvent event) { updateTV(event.values[0], event.values[1], event.values[2]); } public void onAccuracyChanged(Sensor sensor, int accuracy) {} }; @Override protected void onResume() { super.onResume(); myManager.registerListener(mySensorListener, accSensor, SensorManager.SENSOR_DELAY_GAME); } @Override protected void onStop() { myManager.unregisterListener(mySensorListener); super.onStop(); } }