Added some generic implementation of the camera preview view from Android Developers