Titanium Community Questions & Answer Archive

We felt that 6+ years of knowledge should not die so this is the Titanium Community Questions & Answer Archive

Android shake event

Does the Android shake event work?

If yes, what code did you use?


— asked May 21st 2010 by Simon Facciol
  • android
  • bug
  • event
  • shake

1 Answer

  • Accepted Answer

    Hello Simon,

    I'm afraid the shake gesture is not yet implemented in our Android sdk. I've created a ticket which you can follow if you wish:




    — answered May 21st 2010 by Bill Dawson
    • Well it works now with a quick :

      Ti.Gesture.addEventListener('shake',function(e) {doSomething};

      But how do I tweak it so it works as I need it to? Say to ensure it works with a specific strength of shake.

      — commented December 13th 2011 by Dooley P
    • I need this too! Dooley, did you ever find out how to set the sensitivity of the shake gesture?

      — commented July 27th 2012 by Amy H
The ownership of individual contributions to this community generated content is retained by the authors of their contributions.
All trademarks remain the property of the respective owner.