Android模拟器振动测试? [英] Android Emulator Vibration Test?
本文介绍了Android模拟器振动测试?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
有没有一种方法可以测试Android Studio附带的虚拟设备上的振动?
Is there a way to test vibrations on the Virtual Devices that come with Android Studio?
我尝试搜索logcat,但似乎没有任何迹象表明
I tried searching logcat and it seems like there isn't any indication of when the Android device is vibrating or not.
推荐答案
您尝试过吗?
logcat -b system
(调查此答案:调试Android振动)
除此之外,如果您正在编写代码,则使用方法
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.
这篇关于Android模拟器振动测试?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文