Skip navigation

Manage device sensors

Manage device sensors: Java Design Patterns and APIs for Android
Manage device sensors: Java Design Patterns and APIs for Android

Mobile devices have sensors that can report all sorts of information about their own usage and the world around them. Position sensors report the device’s location, environment sensors can report atmospheric conditions, and motion sensors report the device’s changes in position or orientation. You can listen for this information using classes from the package android.hardware. In this example I’ll describe how to use one of the most common sensors, the accelerometer, which reports changes in the device’s orientation.

  • Overview
  • Transcript
  • View Offline
Resume Transcript Auto-Scroll
Skill Level Beginner
2h 48m
Duration
35,945
Views
Show More Show Less
Skills covered in this course
Developer Mobile Apps Programming Languages Java

Continue Assessment

You started this assessment previously and didn't complete it. You can pick up where you left off, or start over.

Start Your Free Trial Now

Start your free trial now, and begin learning software, business and creative skills—anytime, anywhere—with video instruction from recognized industry experts.

Start Your Free Trial Now