I am getting start sensor. I want to know which sensor in android will help me. and how? If I want to know when my phone moves like this.. Anim Video . Can any one please help me?
Asked
Active
Viewed 497 times
0
-
Have you found any solution to this? Can you help me out on this [question](http://stackoverflow.com/questions/34997669/android-acceleration-down-smash) please? – Skizo-ozᴉʞS ツ Jan 26 '16 at 00:44
1 Answers
2
You need Acceleration sensor and Orientation sensor as well to accuratelly recognize the move described in your video.
So, I would recommend to collect the data from mentioned sensors and describe movement (acceleration and orientation should have separate 3D functions) with few mathematical functions/graphs. Then , within certain accuracy, check whether repeated move matches expected behaviour on all axis.
You will need this for reference on the axis:
http://developer.android.com/reference/android/hardware/SensorEvent.html
Looks like no change (or very small) should occur on Y-axis to describe move from your video.

Zelimir
- 11,008
- 6
- 50
- 45
-
-
That the point what I was looking for. I will implement some function to find the require movement of the phone. Thanks – Arslan Anwar May 26 '11 at 08:40
-
@Zelimir Can you help me out on this [question](http://stackoverflow.com/questions/34997669/android-acceleration-down-smash) please? – Skizo-ozᴉʞS ツ Jan 26 '16 at 00:44
-