Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to invoke Ajax based on phone shake?

I am trying to make my first web application for mobile devices. Is it possible to capture the "shake event" on android?

I was looking on jquery moble library but there is no shake event or accelerometer events.

Is it possible to have a Ajax call based on shake event???

Thanks Arman.

like image 223
Arman Avatar asked Jan 20 '23 15:01

Arman


1 Answers

Man, maybe a plugin could do that, but only with JqueryMobile I think you won't be able to get the shake event.

Here's a list of Jquery events: http://jquerymobile.com/demos/1.0a2/experiments/api-viewer/index.html

like image 199
Thiago Avatar answered Jan 29 '23 13:01

Thiago