【问题标题】:How to detect if an Android device has been touched or moved如何检测 Android 设备是否被触摸或移动
【发布时间】:2010-04-25 11:51:10
【问题描述】:

是否有可能通过某些事件知道手机是否被触摸/移动(例如提起它)?
你会如何编码?

【问题讨论】:

    标签: android device


    【解决方案1】:

    我认为您指的是 android 中的 Sensors API。您可以找到有关设备方向的信息。这是我使用的指南。感谢 Marko Gargenta

    http://marakana.com/forums/android/android_examples/43.html

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2019-04-30
      • 1970-01-01
      • 1970-01-01
      • 2020-12-09
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多