O'Reilly logo

Augmented Reality for Android Application Development by Dr. Raphael Grasset, Jens Grubert

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

Accessing the camera in Android

To start with, we will create a simple camera activity to get to know the principles of camera access in Android. While there are convenient Android applications that provide quick means for snapping a picture or recording a video through Android intents, we will get our hands dirty and use the Android camera API to get a customized camera access for our first application.

We will guide you, step-by-step, in creating your first app showing a live camera preview. This will include:

  • Creating an Eclipse project
  • Requesting relevant permissions in the Android Manifest file
  • Creating SurfaceView to be able to capture the preview frames of the camera
  • Creating an activity that displays the camera preview frames
  • Setting camera ...

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