Skip to content

Instantly share code, notes, and snippets.

View miniaishwarya's full-sized avatar
🎯
Focusing

miniaishwarya

🎯
Focusing
View GitHub Profile
@miniaishwarya
miniaishwarya / gist:f047ed4de4b06461dc3bcd6c1542195a
Created June 21, 2020 19:29 — forked from jhonsore/README.md
Upload an Image from camera or gallery in WebView.
//Found on: https://stackoverflow.com/questions/15725814/upload-an-image-from-camera-or-gallery-in-webview
private ValueCallback<Uri> mUploadMessage;
private Uri mCapturedImageURI = null;
private ValueCallback<Uri[]> mFilePathCallback;
private String mCameraPhotoPath;
private static final int INPUT_FILE_REQUEST_CODE = 1;
private static final int FILECHOOSER_RESULTCODE = 1;