Android Emulator Vibration Test? [duplicate]

2019-06-15 23:51发布

This question is an exact duplicate of:

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条回答
再贱就再见
2楼-- · 2019-06-16 00:32

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.

查看更多
登录 后发表回答