In my android app, I would like to be able to limit the maximal resolution (or size in mb) of a picture being taken.
here is how i call the camera activity :
Intent intent = new Intent( MediaStore.ACTION_IMAGE_CAPTURE );
intent.putExtra( MediaStore.EXTRA_OUTPUT, Uri.fromFile( new File( mTmpFilePath ) ) );
intent.putExtra( "filename", mTmpFilePath );
startActivityForResult( intent, REQUEST_CAMERA );
Is there anyway to force or limit the camera resolution ?