Custom Camera using Surface-view
See the original posting on DZone Python
SurfaceView is a class provided by the android.view package. It offers a dedicated drawing surface embedded inside of a view hierarchy. We can manage the format of this surface, however,
SurfaceView takes care of putting the surface at the right location on the screen.
In this post, we will use
SurfaceView to preview the camera (android.hardware.camera) onto the screen and capture images using it.