0

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?

Arslan Anwar
  • 18,746
  • 19
  • 76
  • 105
  • 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 Answers1

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