Android Emulator Vibration Test? [duplicate]

↘锁芯ラ 提交于 2019-12-10 12:39:44

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!