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.
Asked
Active
Viewed 1.5k times
2
-
a good example to use accelerometer in android http://www.quicktips.in/get-accelerometer-readings-android/ – Deepak Swami Jun 29 '16 at 16:51
3 Answers
3
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

Jon Willis
- 6,993
- 4
- 43
- 51
0
Professional Android Sensor Programming by Milette is a good book for Android sensor programming.
If you don't want to buy it, you can always Google for an ebook.

Dhara
- 6,587
- 2
- 31
- 46

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

slim
- 4,010
- 9
- 35
- 42
-
I did find this tutorial but the OP was back in 2008. I started reading his tutorial and applying it but some things were off. Importing android.hardware.Sensor works but plural "Sensors" does not. – semajhan Dec 15 '10 at 23:51
-
-