The accelerometer axis on the Droid are X, Y, Z and relative to the physical device. As for detecting shake, I was successful using a digital band pass filter. Here's another thread about shaking with my code (however I found that the 2 Hz center band is a bit too fast.)
http://groups.google.com/group/android-developers/browse_thread/thread/d61f7790afb3f8b6/770777368e823548?lnk=raot On Thu, Apr 8, 2010 at 7:49 AM, Neilz <[email protected]> wrote: > Hi all. I've been playing with the data given by the accelerometer, > trying to work out how I can gauge a shake from front to back or side > to side. This all seems straightforward enough. > > But I'd love to know the direction of the shake. So, if the user is > shaking backwards and forwards, I want to know if the device is moving > away from the user, or back towards him/her. I can't find any way of > telling this. > > Any clues? > > -- > You received this message because you are subscribed to the Google > Groups "Android Developers" group. > To post to this group, send email to [email protected] > To unsubscribe from this group, send email to > [email protected]<android-developers%[email protected]> > For more options, visit this group at > http://groups.google.com/group/android-developers?hl=en > > To unsubscribe, reply using "remove me" as the subject. > -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en

