Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我是 android 新手,正在尝试制作一个可以使用 android 加速度计检测车速加速和减速的应用程序。
任何人都可以建议关于加速度计的好的教程,可以帮助我解决这个问题。
另外我想知道为了显示加速度计捕获的详细信息,我们是否必须维护数据库?
Android 通过 SensorManager 支持多个传感器。例如加速度计,接近等。
从这里阅读。
链接1
链接2
链接3
要显示您可以使用的值,并在 logcat 中显示这些值。
Log.v("Appname",values[0]);