O'Reilly logo

PhoneGap 3 Beginner's Guide by Giorgio Natili

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Chapter 7. Accessing Device Sensors

The use of device sensors opens the doors to sophisticated apps, able to improve user experience and to enhance the capabilities of a modern app. It's very important for a mobile developer to understand the power and limitations of device sensors to effectively use the APIs provided by the PhoneGap framework.

In this chapter you will:

  • Learn which are the most common device sensors and how to use them in order to enhance the user experience
  • Get an overview of the device orientation and device motion events using the accelerometer
  • Learn how to work with device sensors directly with JavaScript
  • Learn how to use the Compass API of PhoneGap
  • Understand how to access the device compass data and use the available information ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required