135-18219792

建站动态

根据您的个性需求进行定制 先人一步 抢占小程序红利时代

AndrdoidSensorsOverview(探测器概述)一

Most Android-powered devices have built-in sensors that measure motion, orientation, and 

穆棱网站制作公司哪家好,找创新互联建站!从网页设计、网站建设、微信开发、APP开发、响应式网站设计等网站项目制作,到程序开发,运营维护。创新互联建站自2013年创立以来到现在10年的时间,我们拥有了丰富的建站经验和运维经验,来保证我们的工作的顺利进行。专注于网站建设就选创新互联建站

大部分Android设备有内置的探测器,用于探测运动,方位,及各种环境条件。

various environmental conditions. These sensors are capable of providing raw data with high

如果你想要探测三位设备运动或定位,或者想要探测设备附近环境变化,这些探测器所能够提供的高精准的探测数值将会非常有用。

precision and accuracy, and are useful if you want to monitor three-dimensional device movement or positioning, or you want to monitor changes in the ambient environment near a device. For example, a game might track readings from a device's gravity sensor to infer

例如,一款游戏可能需要持续读取设备的重力感应数值来解析复杂的用户姿势和运动,比如倾斜,晃动,旋转,或摇摆。类似地,一个天气应用会使用温度探测器和湿度探测器来计算并报告结露点,又或者一款旅游应用使用地磁场探测器和加速器来报告指南针方位。

complex user gestures and motions, such as tilt, shake, rotation, or swing. Likewise, a weather application might use a device's temperature sensor and humidity sensor to calculate and report the dewpoint, or a travel application might use the geomagnetic field sensor and accelerometer to report a compass bearing.

The Android platform supports three broad categories of sensors:

Android 平台支持三大类传感器:

You can access sensors available on the device and acquire raw sensor data by using the Android sensor framework. The sensor framework provides several classes and interfaces that help you perform a wide variety of sensor-related tasks. For example, you can use the sensor framework to do the following:

通过使用Android sensor framework,你可以访问到设备上可用的探测器并获取原始的探测数据。这个探测框架提供了几个类和接口帮助你执行一系列探测器相关的任务。例如,你可以使用 sensor framework 来做以下事情:

This topic provides an overview of the sensors that are available on the Android platform. It also provides an introduction to the sensor framework.

这节提供传感器的概述,并介绍sensor framework。


网页题目:AndrdoidSensorsOverview(探测器概述)一
浏览地址:http://www.kmfynas.com/article/ppcepd.html

其他资讯

让你的专属顾问为你服务