Android accelerometer

15,145

Solution 1

have you tried this one https://github.com/commonsguy/cw-andtutorials/tree/master/38-Sensors ?

Solution 2

This is a very helpful bit of documentation from the android API reference, note especially the low-pass filter which can be very useful for smoothing out jitter.

http://developer.android.com/reference/android/hardware/SensorEvent.html#values

Share:
15,145
semajhan
Author by

semajhan

Updated on June 04, 2022

Comments

  • semajhan
    semajhan almost 2 years

    Is it just me or can I not find a simple tutorial on accessing the accelerometer in android via google search? Every other time I search for some simple tutorial(countdowntimers, activities, handlers, threads) I can find some but for some reason the accelerometer subject is vague. I use the examples from the sdk as a second or 3rd source once I get a clearer understanding from a simpler(as in for beginners) source, which are the sample tutorials other's provide on their blogs/site. Where can I get a simple accelerometer tutorial? Two books that I own don't have anything on the matter either.