Is it possible to listen for phone vibration in Android? Basically, I need my background component to wake-up and do some stuff whenever the phone vibrates.
Is it possible to listen for phone vibration in Android?
Sorry, no, not without custom firmware.
来源:https://stackoverflow.com/questions/7343366/vibration-listener-in-android