AndrdoidSensorsOverview(探測(cè)器概述)二

Introduction to Sensors

介紹傳感器

讓客戶滿意是我們工作的目標(biāo),不斷超越客戶的期望值來自于我們對(duì)這個(gè)行業(yè)的熱愛。我們立志把好的技術(shù)通過有效、簡(jiǎn)單的方式提供給客戶,將通過不懈努力成為客戶在信息化領(lǐng)域值得信任、有價(jià)值的長(zhǎng)期合作伙伴,公司提供的服務(wù)項(xiàng)目有:域名注冊(cè)、虛擬主機(jī)、營(yíng)銷軟件、網(wǎng)站建設(shè)、沂南網(wǎng)站維護(hù)、網(wǎng)站推廣。


The Android sensor framework lets you access many types of sensors. Some of these sensors

are hardware-based and some are software-based. Hardware-based sensors are physical components built into a handset or tablet device. They derive their data by directly measuring specific environmental properties, such as acceleration, geomagnetic field strength, or angular change. Software-based sensors are not physical devices, although they mimic hardware-based sensors. Software-based sensors derive their data from one or more of the hardware-based sensors and are sometimes called virtual sensors or synthetic sensors. The linear acceleration sensor and the gravity sensor are examples of software-based sensors.

Android sensor framework 讓你使用多種傳感器。有基于硬件和基于軟件的?;谟布膫鞲衅魇莾?nèi)置于設(shè)備中的物理組件。它們直接測(cè)量具體的環(huán)境屬性來得出數(shù)據(jù),例如加速度,地磁場(chǎng)強(qiáng)度,或者角的變化。基于軟件的傳感器你不是物理設(shè)備,盡管它們模擬硬件傳感器。軟件探測(cè)器通過一個(gè)或者多個(gè)硬件傳感器來得出數(shù)據(jù),有時(shí)稱為虛擬傳感器或者合成傳感器。線性加速度傳感器和重力傳感器是軟件傳感器的例子。

Table 1 summarizes the sensors that are supported by the Android platform.

表1 總結(jié)了android 平臺(tái)支持的傳感器。

Few Android-powered devices have every type of sensor. For example, most handset devices and tablets have an accelerometer and a magnetometer, but fewer devices have barometers or thermometers. Also, a device can have more than one sensor of a given type. For example, a device can have two gravity sensors, each one having a different range.

少有android 設(shè)備每種傳感器都有。例如,大部分手機(jī)設(shè)備和平板有一個(gè)加速計(jì)和一個(gè)磁力計(jì),但是較少設(shè)備有氣壓計(jì)或溫度計(jì)。一個(gè)設(shè)備也可以有一個(gè)以上的同類傳感器,如果可以用兩個(gè)不同范圍的重力傳感器。

Table 1.Sensor types supported by the Android platform.

表1。Android 平臺(tái)支持的傳感器種類。

SensorTypeDescriptionCommon Uses
TYPE_ACCELEROMETERHardware

Measures the acceleration force inm/s2 that is applied to a device on all three physical axes (x, y, and z), including the force of gravity.

測(cè)量在設(shè)備的三個(gè)軸的加速度,單位 m/s2 ,包括重力加速度

Motion detection (shake, tilt, etc.).

運(yùn)動(dòng)檢測(cè)

TYPE_AMBIENT_TEMPERATUREHardware

Measures the ambient room temperature in degrees Celsius (°C). See note below.

測(cè)量室溫,單位攝氏度(°C)

Monitoring air temperatures.

監(jiān)視空氣溫度

TYPE_GRAVITYSoftware or Hardware

Measures the force of gravity in m/s2 that is applied to a device on all three physical axes (x, y, z).

測(cè)量在設(shè)備三個(gè)軸的重力加速度,單位m/s2 。

Motion detection (shake, tilt, etc.).
TYPE_GYROSCOPEHardware

Measures a device's rate of rotation in rad/s around each of the three physical axes (x, y, and z).

測(cè)量在設(shè)備三個(gè)軸上的角速度。單位rad/s

Rotation detection (spin, turn, etc.).

旋轉(zhuǎn)檢測(cè)

TYPE_LIGHTHardware

Measures the ambient light level (illumination) in lx.

測(cè)試環(huán)境亮度級(jí),單位 lx

Controlling screen brightness.

控制屏幕亮度

TYPE_LINEAR_ACCELERATIONSoftware or Hardware

Measures the acceleration force in m/s2 that is applied to a device

on all three physical axes (x, y, and z), excluding the force of gravity.

測(cè)量在設(shè)備三軸上的加速度,排除了重力。

Monitoring acceleration along a single axis.

檢測(cè)一個(gè)軸上的加速度

TYPE_MAGNETIC_FIELDHardware

Measures the ambient geomagnetic field for all three physical axes (x, y, z) in μT.

測(cè)量三軸的地磁場(chǎng),單位μT

Creating a compass.

創(chuàng)建一個(gè)羅盤

TYPE_ORIENTATIONSoftware

Measures degrees of rotation that a device makes around all three physical axes (x, y, z).As of API level 3 you can obtain the inclination matrix and rotation matrix for  a device by using the gravity sensor and the geomagnetic field sensor in conjunction with the getRotationMatrix() method.

測(cè)量設(shè)備繞三軸轉(zhuǎn)的旋轉(zhuǎn)度。

Determining device position.
TYPE_PRESSUREHardwareMeasures the ambient air pressure in hPa or mbar.測(cè)量氣壓
Monitoring air pressure changes.
TYPE_PROXIMITYHardwareMeasures the proximity of an object in cm relative to the view screen of a device. This sensor is typically used to determine whether a handset is being held up to a person's ear.Phone position during a call.
TYPE_RELATIVE_HUMIDITYHardwareMeasures the relative ambient humidity in percent (%).Monitoring dewpoint, absolute, and relative humidity.
TYPE_ROTATION_VECTORSoftware or HardwareMeasures the orientation of a device by providing the three elements of the device's      rotation vector.Motion detection and rotation detection.
TYPE_TEMPERATUREHardwareMeasures the temperature of the device in degrees Celsius (°C). This sensor implementation varies across devices and this sensor was replaced with the TYPE_AMBIENT_TEMPERATURE sensor in API Level 14Monitoring temperatures.

新聞標(biāo)題:AndrdoidSensorsOverview(探測(cè)器概述)二
網(wǎng)頁URL:http://m.kartarina.com/article8/pgocop.html

成都網(wǎng)站建設(shè)公司_創(chuàng)新互聯(lián),為您提供響應(yīng)式網(wǎng)站、網(wǎng)站排名做網(wǎng)站、軟件開發(fā)、網(wǎng)站改版外貿(mào)網(wǎng)站建設(shè)

廣告

聲明:本網(wǎng)站發(fā)布的內(nèi)容(圖片、視頻和文字)以用戶投稿、用戶轉(zhuǎn)載內(nèi)容為主,如果涉及侵權(quán)請(qǐng)盡快告知,我們將會(huì)在第一時(shí)間刪除。文章觀點(diǎn)不代表本網(wǎng)站立場(chǎng),如需處理請(qǐng)聯(lián)系客服。電話:028-86922220;郵箱:631063699@qq.com。內(nèi)容未經(jīng)允許不得轉(zhuǎn)載,或轉(zhuǎn)載時(shí)需注明來源: 創(chuàng)新互聯(lián)

小程序開發(fā)
主站蜘蛛池模板: 日韩人妻无码精品系列| 亚洲性无码av在线| 亚洲中文字幕无码亚洲成A人片| 精品人无码一区二区三区| 2019亚洲午夜无码天堂| 无码色AV一二区在线播放| 精品乱码一区内射人妻无码| 国产丝袜无码一区二区视频| 无码区国产区在线播放| 免费人妻av无码专区| 免费A级毛片无码A∨免费| 无码A级毛片日韩精品| 亚洲av专区无码观看精品天堂| 精品无码国产污污污免费网站国产| 久久久久亚洲av无码专区| 亚洲精品无码不卡在线播HE| (无码视频)在线观看| 91精品无码久久久久久五月天| 久久精品无码一区二区三区日韩 | 日韩精品人妻系列无码专区 | 国产精品va在线观看无码| 在线观看成人无码中文av天堂| 国产aⅴ激情无码久久| 无码色AV一二区在线播放| 亚洲youwu永久无码精品| 久久精品国产亚洲AV无码麻豆 | 无码精品人妻一区二区三区免费看| 精品无码久久久久久久久 | 日韩AV高清无码| 精品无码国产污污污免费| 亚洲中文无码mv| 无码国产精品一区二区免费虚拟VR | 无码喷水一区二区浪潮AV| 无码八A片人妻少妇久久| 中文字幕无码免费久久99| 乱人伦中文无码视频在线观看| 亚欧免费无码aⅴ在线观看| 亚洲国产精品无码专区在线观看 | 人妻少妇精品无码专区| 亚洲AV成人片无码网站| 性虎精品无码AV导航|