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 ...
Get Augmented Reality for Android Application Development now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.