【问题标题】:In the Android Emulator, how to know if vibration happened?在 Android Emulator 中,如何知道是否发生了振动?
【发布时间】:2018-12-21 09:56:26
【问题描述】:

我通过以下命令在模拟器设备上启动我的应用程序:react-native run-android。 我在我的应用中使用了 Vibration API,如何检查是否发生了振动?

谢谢。

【问题讨论】:

标签: android react-native android-emulator


【解决方案1】:

作为this的回答可以在logcat中查找振动信息,可以使用logcat -b system命令

【讨论】:

    【解决方案2】:

    在模拟器中检查logcat它会给出振动消息

    【讨论】:

      猜你喜欢
      • 2019-06-21
      • 2023-03-25
      • 1970-01-01
      • 2021-12-09
      • 1970-01-01
      • 1970-01-01
      • 2016-03-04
      • 2019-01-31
      • 1970-01-01
      相关资源
      最近更新 更多