7

Direction of movement using an accelerometer android not working

view full story
linux-howto

http://stackoverflow.com – I am developing an android application to get the direction of a android device. I am using the code below: public class AccelerometerDirection extends Activity implements SensorEventListener { TextView textView; StringBuilder builder = new StringBuilder(); float [] history = new float[2]; String [] direction = {"NONE","NONE"}; @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); textView = new TextView(this); setContentView(textView); SensorManager manager = (SensorManager) getSystemServi (HowTos)