1

I am working on an Android app that uses accelerometer to detect certain gestures, but sometimes when the phone vibrates (due to message/call) it triggers the gesture. Is there any way to prevent vibration due to something like a notification or phone call to stop affecting the accelerometer?

1 Answers1

0

It seems to me that if you can detect a notification ( see stackoverflow post: Detect a new Android notification) you can disable your gesture detection on a timer until the vibration is complete.

Hope this helps.

Tim

Community
  • 1
  • 1