I need to completely disable the back button when taking a picture because my setup creates a file before the camera activity starts, therefore the user must go ahead with the picture.
Adding finish();
right after startActivity();
takes me out (after removing all the activity stacks) so I removed it.
@Override
public boolean onKeyDown(int keyCode, KeyEvent event)
{
// TODO Auto-generated method stub
if ((keyCode == KeyEvent.KEYCODE_BACK))
{
return false;
}
return super.onKeyDown(keyCode, event);
}// end of disable back event
Using the above code, doesn't affect the camera activity so only works in the activity that calls the camera intent
Is there a way to have the above method attached to the startActivityForResult(camera_intent, CAM_REQUEST);
activity?
Thanks!