问题
Is there a way to test vibrations on the Virtual Devices that come with Android Studio?
I tried searching logcat and it seems like there isn't any indication of when the Android device is vibrating or not.
回答1:
Did you try this?
logcat -b system
(Look into this answer: Debug Android vibration)
Othere than that, if you are writing the code, the vibration is called with the method
Vibrator.vibrate().
You could write a wrapper around this or create your own vibrator class to add some specific logging next to the vibration call itself.
来源:https://stackoverflow.com/questions/37804153/android-emulator-vibration-test