Shake On Android

You must Login before you can answer or comment on any questions.

I am coding an app using Titanium and trying to get Shake work on it. I have used the basic code for shake, it works fine in Iphone but in Android I have to shake 4times(normal shake) or 2times(big shake) or 1 time(very big shake) I tried settings in TiApp.xml but no luck Below is my code in Tiapp.xml

<android >
    </android>
    <modules>
    </modules>
    <property name="ti.android.shake.factor" type="double">0.5</property>
    <property name="ti.android.shake.quiet.milliseconds" type="int">50</property>
    <property name="ti.android.shake.active.milliseconds" type="int">100</property>
I tried setting different value for shake factor, quite and active but still the same.

Let me know your thoughts Experts.

Thanks in advance.

— asked 2 years ago by rohit patel
3 Comments
  • I'm wondering about this as well.

    — commented 1 year ago by Dooley P

  • No answers from anyone, Probably no one is using shake on android? or no one is using titanium for android?

    Anyways, I suggest if you still want shake functionality in android, you will need to create a module in native android and integrate it via titanium.

    — commented 1 year ago by rohit patel

  • it works on sdk 2.1.4.GA

    — commented 5 months ago by Yann Offredi

Your Answer

Think you can help? Login to answer this question!