1

Upload an Image from camera or gallery in WebView

view story
linux-howto

http://stackoverflow.com – Is there a way to add the option to start camera and upload image from it in a webview. See my entire code here. Below is the code block that allows to open a dialog box to upload image from gallery. wv.setWebChromeClient(new WebChromeClient() { // For Android 3.0+ public void openFileChooser( ValueCallback<Uri> uploadMsg, String acceptType ) { mUploadMessage = uploadMsg; Intent i = new Intent(Intent.ACTION_GET_CONTENT); i.addCategory(Intent.CATEGORY_OPENABLE); i.setType("image/*"); MainActivi (HowTos)