In my Android application, I would like to limit the maximum resolution (or size in mb) of the picture taken.
Here is what I call 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 a way to force or limit the resolution of the camera?
source share