-->

Android Emulator Vibration Test? [duplicate]

2019-06-16 00:07发布

问题:

This question is an exact duplicate of:

  • Debug Android vibration 1 answer

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.