This article describes a simple way to take pictures using Android’s built in classes and save them to the SD card. It also shows how to display the picture on the screen. All of this in less than 40 lines of code. This was written using Android 2.1 APIs.
This article describes how to draw a bounding box on top of a camera preview to capture part of the image just like Google goggles does. This article mainly involves looking at a SurfaceView for generating a camera view and a View to create a canvas and draw on top of the camera view. Also shows how to use the onTouchInterceptEvent to pass touch events to lower Views. Android 2.2 API needs to be used for this.