There was a discussion recently about getting the phone orientation
converted to earth-relative orientation, that might help.

Maybe just monitor phone relative acceleration for -x followed by +x
for a left
and +x followed by -x for a right shake?


On Aug 28, 12:41 pm, karthikr <karthik.scintill...@gmail.com> wrote:
> Hi Guys,
>
> My application requires to identify if the user has done a shake
> towards the left or if he has done a shake towards the right.
>
> How do i go about implementing this?
>
> I have tried the sensor manager listener where in i am able to
> identify a general shake event, but im not able to identify if its a
> left or a right shake..
>
> Regards,
> R.Karthik
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to