KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
I am trying to build a small photo app with a burst mode for camera. The main idea is to shoot a picture every 0,3sec and to store the pictures in an Array until the last picture is taken. The number of pictures to shoot should specified. I can only shoot a picture every 2sec. as shortest interval. Then, when the pictures should be written to storage, the applications chrashes. Does someone know how to implement this? Here is my code: import java.io.ByteArrayInputStream; import java.io.ByteArrayOutputStream; import java.io.FileNotFoundException; import java.io.FileOutputStream; import java.io.IOException; import java.io.ObjectInputStream; import java.io.ObjectOutputStream; import java.util.ArrayList; import java.util.Iterator; import java.util.List; import android.app.Activity; import android.content.Context; import android.content.Intent; import android.graphics.PixelFormat; import android.hardware.Camera; import android.os.Bundle; import android.util.Log; import android.view.SurfaceHolder; import android.view.SurfaceView; import android.view.View; import android.view.Window; import android.view.WindowManager; import android.view.View.OnClickListener; public class CamaeaView extends Activity implements SurfaceHolder.Callback, OnClickListener { static final int FOTO_MODE = 1; private static final String TAG = "Test"; Camera mCamera; boolean mPreviewRunning = false; private Context mContext = this; ArrayList<Object> listImage = null; public static ArrayList<Object> List1[]; public void onCreate(Bundle icicle) { super.onCreate(icicle); Log.e(TAG, "onCreate"); @SuppressWarnings("unused") Bundle extras = getIntent().getExtras(); getWindow().setFormat(PixelFormat.TRANSLUCENT); requestWindowFeature(Window.FEATURE_NO_TITLE); getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN, WindowManager.LayoutParams.FL
Tags (comma-separated)
Save Edits
Cancel