SlideShare une entreprise Scribd logo
1  sur  3
Sensor

Type

Description

Common Uses

TYPE_ACCELEROMETER

Hardware

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

Motion
detection
(shake, tilt,
etc.).

TYPE_ROTATION_VECTOR

Software
or
Hardware

Measures the orientation of a device by
providing the three elements of the
device's rotation vector.

Motion
detection and
rotation
detection.

TYPE_GRAVITY

Software
or
Hardware

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

Motion
detection
(shake, tilt,
etc.).

TYPE_GYROSCOPE

Hardware

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

Rotation
detection
(spin, turn,
etc.).

TYPE_LINEAR_ACCELERATION

Software
or
Hardware

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

Monitoring
acceleration
along a single
axis.

TYPE_MAGNETIC_FIELD

Hardware

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

Creating a
compass.

TYPE_ORIENTATION

Software

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

Determining
device
position.

Motion Sensors

Position Sensors
thegetRotationMatrix() method.

TYPE_PROXIMITY

Hardware

Measures 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.

Environment Sensors
TYPE_TEMPERATURE

Hardware

Measures the temperature of the device
in degrees Celsius (°C). This sensor
implementation varies across devices
and this sensor was replaced with
theTYPE_AMBIENT_TEMPERATURE sensor
in API Level 14

Monitoring
temperatures.

TYPE_AMBIENT_TEMPERATURE

Hardware

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

Monitoring air
temperatures.

TYPE_LIGHT

Hardware

Measures the ambient light level
(illumination) in lx.

Controlling
screen
brightness.

TYPE_RELATIVE_HUMIDITY

Hardware

Measures the relative ambient humidity
in percent (%).

Monitoring
dewpoint,
absolute, and
relative
humidity.

TYPE_PRESSURE

Hardware

Measures the ambient air pressure in
hPa or mbar.

Monitoring air
pressure
changes.
Sensor

Android 4.0
(API Level 14)

Android 2.3
(API Level 9)

Android 2.2
(API Level 8)

Android 1.5
(API Level 3)

TYPE_ACCELEROMETER

Yes

Yes

Yes

Yes

TYPE_AMBIENT_TEMPERATURE

Yes

n/a

n/a

n/a

TYPE_GRAVITY

Yes

Yes

n/a

n/a

TYPE_GYROSCOPE

Yes

Yes

n/a1

n/a1

TYPE_LIGHT

Yes

Yes

Yes

Yes

TYPE_LINEAR_ACCELERATION

Yes

Yes

n/a

n/a

TYPE_MAGNETIC_FIELD

Yes

Yes

Yes

Yes

TYPE_ORIENTATION

Yes2

Yes2

Yes2

Yes

TYPE_PRESSURE

Yes

Yes

n/a1

n/a1

TYPE_PROXIMITY

Yes

Yes

Yes

Yes

TYPE_RELATIVE_HUMIDITY

Yes

n/a

n/a

n/a

TYPE_ROTATION_VECTOR

Yes

Yes

n/a

n/a

TYPE_TEMPERATURE

Yes2

Yes

Yes

Yes

1

This sensor type was added in Android 1.5 (API Level 3), but it was not available for use until
Android 2.3 (API Level 9).
2

This sensor is available, but it has been deprecated.

Contenu connexe

Tendances

Sensor, Transducers and Actuator in Robotics
Sensor, Transducers and Actuator in RoboticsSensor, Transducers and Actuator in Robotics
Sensor, Transducers and Actuator in RoboticsIkram Arshad
 
Working with Windows Phone sensors, gps and maps
Working with Windows Phone sensors, gps and mapsWorking with Windows Phone sensors, gps and maps
Working with Windows Phone sensors, gps and mapsMalin De Silva
 
How to read vfr flight instruments
How to read vfr flight instrumentsHow to read vfr flight instruments
How to read vfr flight instrumentsSéamus McGillicuddy
 
odometer and some terms in instrumentation
odometer and some terms in instrumentationodometer and some terms in instrumentation
odometer and some terms in instrumentationBagja Tirta
 
Sensors and Actuators
Sensors and Actuators Sensors and Actuators
Sensors and Actuators Aamir Shaikh
 
A User Guide To The Microfet 2 Hand Held Dynamometer
A User Guide To The Microfet 2 Hand Held DynamometerA User Guide To The Microfet 2 Hand Held Dynamometer
A User Guide To The Microfet 2 Hand Held DynamometerProHealthcareProducts.com
 
Sensors & applications , commenly used sensors
Sensors & applications , commenly used sensorsSensors & applications , commenly used sensors
Sensors & applications , commenly used sensorsKamal Bhagat
 
Introduction to physics
Introduction to physicsIntroduction to physics
Introduction to physicsCk Sal
 
File Handling
File HandlingFile Handling
File HandlingSohanur63
 

Tendances (13)

Sensor, Transducers and Actuator in Robotics
Sensor, Transducers and Actuator in RoboticsSensor, Transducers and Actuator in Robotics
Sensor, Transducers and Actuator in Robotics
 
Working with Windows Phone sensors, gps and maps
Working with Windows Phone sensors, gps and mapsWorking with Windows Phone sensors, gps and maps
Working with Windows Phone sensors, gps and maps
 
How to read vfr flight instruments
How to read vfr flight instrumentsHow to read vfr flight instruments
How to read vfr flight instruments
 
odometer and some terms in instrumentation
odometer and some terms in instrumentationodometer and some terms in instrumentation
odometer and some terms in instrumentation
 
Air bags in car for
Air bags in car forAir bags in car for
Air bags in car for
 
Sensors and Actuators
Sensors and Actuators Sensors and Actuators
Sensors and Actuators
 
A User Guide To The Microfet 2 Hand Held Dynamometer
A User Guide To The Microfet 2 Hand Held DynamometerA User Guide To The Microfet 2 Hand Held Dynamometer
A User Guide To The Microfet 2 Hand Held Dynamometer
 
Sensors & applications , commenly used sensors
Sensors & applications , commenly used sensorsSensors & applications , commenly used sensors
Sensors & applications , commenly used sensors
 
Introduction to physics
Introduction to physicsIntroduction to physics
Introduction to physics
 
Accelerometer 1
Accelerometer 1Accelerometer 1
Accelerometer 1
 
File Handling
File HandlingFile Handling
File Handling
 
Smart Phone Sensor
Smart Phone SensorSmart Phone Sensor
Smart Phone Sensor
 
Different types of sensors
Different types of sensorsDifferent types of sensors
Different types of sensors
 

En vedette

Secret code android
Secret code androidSecret code android
Secret code androidTarun Bamba
 
All secret codes of samsung mobile phone
All secret codes of samsung mobile phoneAll secret codes of samsung mobile phone
All secret codes of samsung mobile phonenendydoank
 
Samsung Mobile Phone Codes
Samsung Mobile Phone CodesSamsung Mobile Phone Codes
Samsung Mobile Phone CodesLenny Henningham
 
писаревский алексей
писаревский алексейписаревский алексей
писаревский алексейapps4allru
 
Государственный реестр регистраторов расчетных операций (РРО) от 02.08.2013
Государственный реестр регистраторов расчетных операций (РРО)  от 02.08.2013Государственный реестр регистраторов расчетных операций (РРО)  от 02.08.2013
Государственный реестр регистраторов расчетных операций (РРО) от 02.08.2013uaseller.org
 
Дмитрий Рыжков. Intel Android x86.
Дмитрий Рыжков. Intel Android x86.Дмитрий Рыжков. Intel Android x86.
Дмитрий Рыжков. Intel Android x86.Leonid Bogolubov
 
Android for-indoor-services
Android for-indoor-servicesAndroid for-indoor-services
Android for-indoor-servicesOSLL
 
04 ns array
04   ns array04   ns array
04 ns arrayNoveo
 
Живые обои для Android. Как создать. Тонкости. Продвижение
Живые обои для Android. Как создать. Тонкости. ПродвижениеЖивые обои для Android. Как создать. Тонкости. Продвижение
Живые обои для Android. Как создать. Тонкости. ПродвижениеSergey Mikhaylov
 
Use-Case is Everything
Use-Case is EverythingUse-Case is Everything
Use-Case is EverythingChinmay V S
 
Android - 14 - Geodata
Android - 14 - GeodataAndroid - 14 - Geodata
Android - 14 - GeodataNoveo
 
CPAлим темы
CPAлим темыCPAлим темы
CPAлим темыAppTractor
 
Презентация - SAMSUNG GT N5100 GALAXY NOTE 8.0 (uaseller.org)
Презентация - SAMSUNG GT N5100 GALAXY NOTE 8.0 (uaseller.org)Презентация - SAMSUNG GT N5100 GALAXY NOTE 8.0 (uaseller.org)
Презентация - SAMSUNG GT N5100 GALAXY NOTE 8.0 (uaseller.org)uaseller.org
 
Password hacking
Password hackingPassword hacking
Password hackingAbhay pal
 

En vedette (20)

Secret code android
Secret code androidSecret code android
Secret code android
 
List Command at Run
List Command at RunList Command at Run
List Command at Run
 
All secret codes of samsung mobile phone
All secret codes of samsung mobile phoneAll secret codes of samsung mobile phone
All secret codes of samsung mobile phone
 
Samsung Mobile Phone Codes
Samsung Mobile Phone CodesSamsung Mobile Phone Codes
Samsung Mobile Phone Codes
 
писаревский алексей
писаревский алексейписаревский алексей
писаревский алексей
 
Hackathon final
Hackathon finalHackathon final
Hackathon final
 
Государственный реестр регистраторов расчетных операций (РРО) от 02.08.2013
Государственный реестр регистраторов расчетных операций (РРО)  от 02.08.2013Государственный реестр регистраторов расчетных операций (РРО)  от 02.08.2013
Государственный реестр регистраторов расчетных операций (РРО) от 02.08.2013
 
Дмитрий Рыжков. Intel Android x86.
Дмитрий Рыжков. Intel Android x86.Дмитрий Рыжков. Intel Android x86.
Дмитрий Рыжков. Intel Android x86.
 
Android for-indoor-services
Android for-indoor-servicesAndroid for-indoor-services
Android for-indoor-services
 
04 ns array
04   ns array04   ns array
04 ns array
 
Brew Compilation
Brew CompilationBrew Compilation
Brew Compilation
 
Живые обои для Android. Как создать. Тонкости. Продвижение
Живые обои для Android. Как создать. Тонкости. ПродвижениеЖивые обои для Android. Как создать. Тонкости. Продвижение
Живые обои для Android. Как создать. Тонкости. Продвижение
 
Use-Case is Everything
Use-Case is EverythingUse-Case is Everything
Use-Case is Everything
 
Android Location Api
Android Location ApiAndroid Location Api
Android Location Api
 
Play Store
Play StorePlay Store
Play Store
 
Android - 14 - Geodata
Android - 14 - GeodataAndroid - 14 - Geodata
Android - 14 - Geodata
 
CPAлим темы
CPAлим темыCPAлим темы
CPAлим темы
 
Презентация - SAMSUNG GT N5100 GALAXY NOTE 8.0 (uaseller.org)
Презентация - SAMSUNG GT N5100 GALAXY NOTE 8.0 (uaseller.org)Презентация - SAMSUNG GT N5100 GALAXY NOTE 8.0 (uaseller.org)
Презентация - SAMSUNG GT N5100 GALAXY NOTE 8.0 (uaseller.org)
 
Password hacking
Password hackingPassword hacking
Password hacking
 
Android Preferences
Android PreferencesAndroid Preferences
Android Preferences
 

Similaire à Sensor android

Android sensors
Android sensorsAndroid sensors
Android sensorsdatta_jini
 
Android Training (Sensors)
Android Training (Sensors)Android Training (Sensors)
Android Training (Sensors)Khaled Anaqwa
 
scientificinstruments-150510102849-lva1-app6891.pptx
scientificinstruments-150510102849-lva1-app6891.pptxscientificinstruments-150510102849-lva1-app6891.pptx
scientificinstruments-150510102849-lva1-app6891.pptxTrinityEducationDefe
 
Unit 1 Lecture 1-4 Concept of Measurement.pptx
Unit 1 Lecture 1-4 Concept of Measurement.pptxUnit 1 Lecture 1-4 Concept of Measurement.pptx
Unit 1 Lecture 1-4 Concept of Measurement.pptxKhalil Alhatab
 
EMI unit -1 introduction to measurements
EMI unit -1 introduction to measurementsEMI unit -1 introduction to measurements
EMI unit -1 introduction to measurementsGopalakrishnaU
 
Sensing Mobile Devices talk from QCon London 2013
Sensing Mobile Devices talk from QCon London 2013Sensing Mobile Devices talk from QCon London 2013
Sensing Mobile Devices talk from QCon London 2013Adam Blum
 
FUNDAMENTALS OF MECHATRONICS AND APPLICATIONS.pptx
FUNDAMENTALS OF MECHATRONICS AND APPLICATIONS.pptxFUNDAMENTALS OF MECHATRONICS AND APPLICATIONS.pptx
FUNDAMENTALS OF MECHATRONICS AND APPLICATIONS.pptxdebeshidutta2
 
MovementTrackingPosterR2
MovementTrackingPosterR2MovementTrackingPosterR2
MovementTrackingPosterR2Erik Zaro
 
Mechanical sensor
Mechanical sensorMechanical sensor
Mechanical sensorB.k. Das
 
Various electronic equipments used in any industry
Various electronic equipments used in any industryVarious electronic equipments used in any industry
Various electronic equipments used in any industryJatin Chauhan
 
Introduction to measurement By Gadkar Sagar P.
Introduction to measurement By Gadkar Sagar P.Introduction to measurement By Gadkar Sagar P.
Introduction to measurement By Gadkar Sagar P.SagarGadkar4
 
Robotics unit3 sensors
Robotics unit3 sensorsRobotics unit3 sensors
Robotics unit3 sensorsJanarthanan B
 
S2 7 edm & total stations
S2 7 edm & total stationsS2 7 edm & total stations
S2 7 edm & total stationsEst
 
roboticsunit3sensors and -201013084413.pptx
roboticsunit3sensors and -201013084413.pptxroboticsunit3sensors and -201013084413.pptx
roboticsunit3sensors and -201013084413.pptxDrPArivalaganASSTPRO
 

Similaire à Sensor android (20)

Week12.pdf
Week12.pdfWeek12.pdf
Week12.pdf
 
Android sensors
Android sensorsAndroid sensors
Android sensors
 
Android Training (Sensors)
Android Training (Sensors)Android Training (Sensors)
Android Training (Sensors)
 
Android sensor
Android sensorAndroid sensor
Android sensor
 
Scientific Instruments
Scientific InstrumentsScientific Instruments
Scientific Instruments
 
scientificinstruments-150510102849-lva1-app6891.pptx
scientificinstruments-150510102849-lva1-app6891.pptxscientificinstruments-150510102849-lva1-app6891.pptx
scientificinstruments-150510102849-lva1-app6891.pptx
 
Unit 1 Lecture 1-4 Concept of Measurement.pptx
Unit 1 Lecture 1-4 Concept of Measurement.pptxUnit 1 Lecture 1-4 Concept of Measurement.pptx
Unit 1 Lecture 1-4 Concept of Measurement.pptx
 
EMI unit -1 introduction to measurements
EMI unit -1 introduction to measurementsEMI unit -1 introduction to measurements
EMI unit -1 introduction to measurements
 
Google Maps Mobile
Google Maps MobileGoogle Maps Mobile
Google Maps Mobile
 
Sensing Mobile Devices talk from QCon London 2013
Sensing Mobile Devices talk from QCon London 2013Sensing Mobile Devices talk from QCon London 2013
Sensing Mobile Devices talk from QCon London 2013
 
FUNDAMENTALS OF MECHATRONICS AND APPLICATIONS.pptx
FUNDAMENTALS OF MECHATRONICS AND APPLICATIONS.pptxFUNDAMENTALS OF MECHATRONICS AND APPLICATIONS.pptx
FUNDAMENTALS OF MECHATRONICS AND APPLICATIONS.pptx
 
MovementTrackingPosterR2
MovementTrackingPosterR2MovementTrackingPosterR2
MovementTrackingPosterR2
 
Ch 1
Ch 1Ch 1
Ch 1
 
Emi unit 1 ppt
Emi unit 1 pptEmi unit 1 ppt
Emi unit 1 ppt
 
Mechanical sensor
Mechanical sensorMechanical sensor
Mechanical sensor
 
Various electronic equipments used in any industry
Various electronic equipments used in any industryVarious electronic equipments used in any industry
Various electronic equipments used in any industry
 
Introduction to measurement By Gadkar Sagar P.
Introduction to measurement By Gadkar Sagar P.Introduction to measurement By Gadkar Sagar P.
Introduction to measurement By Gadkar Sagar P.
 
Robotics unit3 sensors
Robotics unit3 sensorsRobotics unit3 sensors
Robotics unit3 sensors
 
S2 7 edm & total stations
S2 7 edm & total stationsS2 7 edm & total stations
S2 7 edm & total stations
 
roboticsunit3sensors and -201013084413.pptx
roboticsunit3sensors and -201013084413.pptxroboticsunit3sensors and -201013084413.pptx
roboticsunit3sensors and -201013084413.pptx
 

Sensor android

  • 1. Sensor Type Description Common Uses TYPE_ACCELEROMETER Hardware Measures the acceleration force in m/s2that is applied to a device on all three physical axes (x, y, and z), including the force of gravity. Motion detection (shake, tilt, etc.). TYPE_ROTATION_VECTOR Software or Hardware Measures the orientation of a device by providing the three elements of the device's rotation vector. Motion detection and rotation detection. TYPE_GRAVITY Software or Hardware Measures the force of gravity in m/s2that is applied to a device on all three physical axes (x, y, z). Motion detection (shake, tilt, etc.). TYPE_GYROSCOPE Hardware Measures a device's rate of rotation in rad/s around each of the three physical axes (x, y, and z). Rotation detection (spin, turn, etc.). TYPE_LINEAR_ACCELERATION Software or Hardware Measures the acceleration force in m/s2that is applied to a device on all three physical axes (x, y, and z), excluding the force of gravity. Monitoring acceleration along a single axis. TYPE_MAGNETIC_FIELD Hardware Measures the ambient geomagnetic field for all three physical axes (x, y, z) in μT. Creating a compass. TYPE_ORIENTATION Software 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 Determining device position. Motion Sensors Position Sensors
  • 2. thegetRotationMatrix() method. TYPE_PROXIMITY Hardware Measures 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. Environment Sensors TYPE_TEMPERATURE Hardware Measures the temperature of the device in degrees Celsius (°C). This sensor implementation varies across devices and this sensor was replaced with theTYPE_AMBIENT_TEMPERATURE sensor in API Level 14 Monitoring temperatures. TYPE_AMBIENT_TEMPERATURE Hardware Measures the ambient room temperature in degrees Celsius (°C). See note below. Monitoring air temperatures. TYPE_LIGHT Hardware Measures the ambient light level (illumination) in lx. Controlling screen brightness. TYPE_RELATIVE_HUMIDITY Hardware Measures the relative ambient humidity in percent (%). Monitoring dewpoint, absolute, and relative humidity. TYPE_PRESSURE Hardware Measures the ambient air pressure in hPa or mbar. Monitoring air pressure changes.
  • 3. Sensor Android 4.0 (API Level 14) Android 2.3 (API Level 9) Android 2.2 (API Level 8) Android 1.5 (API Level 3) TYPE_ACCELEROMETER Yes Yes Yes Yes TYPE_AMBIENT_TEMPERATURE Yes n/a n/a n/a TYPE_GRAVITY Yes Yes n/a n/a TYPE_GYROSCOPE Yes Yes n/a1 n/a1 TYPE_LIGHT Yes Yes Yes Yes TYPE_LINEAR_ACCELERATION Yes Yes n/a n/a TYPE_MAGNETIC_FIELD Yes Yes Yes Yes TYPE_ORIENTATION Yes2 Yes2 Yes2 Yes TYPE_PRESSURE Yes Yes n/a1 n/a1 TYPE_PROXIMITY Yes Yes Yes Yes TYPE_RELATIVE_HUMIDITY Yes n/a n/a n/a TYPE_ROTATION_VECTOR Yes Yes n/a n/a TYPE_TEMPERATURE Yes2 Yes Yes Yes 1 This sensor type was added in Android 1.5 (API Level 3), but it was not available for use until Android 2.3 (API Level 9). 2 This sensor is available, but it has been deprecated.