O'Reilly logo

PhoneGap by Andrew Lunny

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 8. Accessing Camera Data and Files

Mobile devices, almost ubiquitously, have one or two cameras mounted on them, and the photographs associated with them are some of the most obvious user data for applications to access. While camera access in mobile browsers is still nascent, PhoneGap has long had support for accessing camera data and files through applications. Although there's just a single JavaScript that gets used—navigator.camera.getPicture—the myriad use cases for the camera API make it one of the more popular PhoneGap APIs.

In this chapter, we will get to grips with PhoneGap's camera API and how it can be used; in particular, we'll:

  • Master the getPicture function, and the various options that can be passed to it
  • Render files from ...

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