How to detect if someone shakes an iPhone

352580 pts.
Tags:
iPhone
Mobile
I apologize if this sounds like an odd question but I would like to know when somebody shakes my iPhone. Would anyone know how to detect that? Thanks!

Answer Wiki

Thanks. We'll let you know when a new response is added.

When someone shakes your iPhone?

You would need to install an application with the ability to detect motion events and report them to you somehow (I assume you want to detect that when the phone is not in your hands).

If you are a developer wanting to write such app, there could be a different answer depending on the OS version and the type of movement you want to detect.

You would have to detect Motion Events.

Here’s a simple article with a basic example: Detecting Shakes Using Motion Events

Discuss This Question: 1  Reply

 
There was an error processing your information. Please try again later.
Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy
  • ToddN2000
    You might try looking for an app that deal with the accelerometer. I assume you want something that runs in the background with out user knowledge. Depending on your coding skills you may be able to write your own app. My concern it determining the force of shaking vs. normal tilting/tipping. I have a question as to why the need? Is your phone getting damaged? Are you sure it's a shaking issue and not a dropping issue?
    15,605 pointsBadges:
    report

Forgot Password

No problem! Submit your e-mail address below. We'll send you an e-mail containing your password.

Your password has been sent to:

To follow this tag...

There was an error processing your information. Please try again later.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Thanks! We'll email you when relevant content is added and updated.

Following