Capture image without user knowledge in android/Capture image as background service in android/Take photo without preview in android/ Camera without preview in android package com.example.picture; import java.io.FileNotFoundException; import java.io.FileOutputStream; import java.io.IOException; import android.app.Service; import android.content.Context; import android.content.Intent; import android.hardware.Camera; import android.hardware.Camera.Parameters; import android.media.AudioManager; import android.os.IBinder; import android.util.Log; import android.view.SurfaceHolder; import android.view.SurfaceView; public class CameraService extends Service { //Camera variables //a surface holder private SurfaceHolder sHolder ; //a variable to control the camera private Camera mCamera ; //the camera parameters private Parameters parameters ; /** Called when the activity is first created. */ @Override p
If you are a beginner , then this blog will help you to dive into the basics.
Comments
Post a Comment