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?
Asked
Active
Viewed 215 times
1 Answers
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

user3585702
- 16
- 2