Search code examples
androidaccelerometer

Android accelerometer usage


I am new to android and trying to make an application that can detect vehicle speed acceleration and deceleration using android accelerometer.

Can anyone suggest good tutorials on accelerometer that can help me with this.

Also I wanted to know in order to display the details captured by accelerometer do we have to maintain a database?


Solution

  • Android supports several sensors via the SensorManager. For example the accelerometer, Proximity etc.

    Read from here.

    Link1

    Link2

    Link3

    To display the values you can use and its displayt the values in logcat.

    Log.v("Appname",values[0]);