Skip to main content

Posts

Showing posts with the label capture image without preview

Camera without preview in android

Camera sample program without preview/How to take photo without a preview in android program package  com.sample import  java.io.FileNotFoundException; import  java.io.FileOutputStream; import  java.io.IOException; import  android.app.Activity; import  android.graphics.Bitmap; import  android.graphics.BitmapFactory; import  android.hardware.Camera; import  android.hardware.Camera.Parameters; import  android.os. Bundle ; import  android.util.Log; import  android.view.SurfaceHolder; import  android.view.SurfaceView; import  android.widget.ImageView; public   class  TakePicture  extends  Activity  implements  SurfaceHolder.Callback {        //a variable to store a reference to the Image View at the main.xml file        private  ImageView  iv_image ;        //a variable to store a reference to ...