Code example for Camera: Taking pictures with the camera

Methods: takePicture

0
        if (keyCode == KeyEvent.KEYCODE_BACK) {        	
            return super.onKeyDown(keyCode, event);
        } 
  
        if (keyCode == KeyEvent.KEYCODE_CAMERA || keyCode == KeyEvent.KEYCODE_DPAD_CENTER || keyCode == KeyEvent.KEYCODE_SEARCH) {
            mCamera.takePicture(null, null, mPictureCallback);
            return true; 
        } 
 
        return false; 
    } 
 
    protected void onResume() 
    { 
        Log.e(TAG, "onResume");
        super.onResume(); 
    } 
 
    protected void onSaveInstanceState(Bundle outState)
    { 
        super.onSaveInstanceState(outState);