I want to open the front camera in nexus 7 but I am not to open it is always opening back camera then Manually I am selecting the front cam through my android program how can I open always front camera first I have tried This links but not working for me.
@present I am using below code to open camera and take the image
button2.setOnClickListener(new View.OnClickListener() {
private static final int IMAGE_CAPTURE = 102;
@Override
public void onClick(View v) {
// TODO Auto-generated method stub
Intent intent = new Intent(MediaStore.ACTION_IMAGE_CAPTURE);
intent.putExtra ("camerasensortype", 2);
startActivityForResult(intent, IMAGE_CAPTURE);
}