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 parameters
Tip
Downloading the example code
You can download the example code files for all Packt books you have purchased from your account at http://www.packtpub.com. If you purchased this book elsewhere, you can visit http://www.packtpub.com/support...