I would like to take a picture without any preview. I used this code but I\'m getting an error:
public void onCreate(Bundle savedInstanceState) { super.
Use this permissions :
And you can instantiate a Camera object using this
Camera mycamera = Camera.open();
You can try the method described here is very simple if you are into simplicity:
http://developer.android.com/training/camera/photobasics.html