Android Utililty Methods Photo Take

List of utility methods to do Photo Take


The list of methods to do Photo Take are organized into topic(s).


booleantakePhoto(final Activity activity, final String dir, final String filename, final int cmd)
take Photo
filePath = dir + filename;
final Intent intent = new Intent(MediaStore.ACTION_IMAGE_CAPTURE);
final File cameraDir = new File(dir);
if (!cameraDir.exists()) {
    return false;
final File file = new File(filePath);
final Uri outputFileUri = Uri.fromFile(file);