Skip to main content

Posts

Featured

Sketchware Webview Storage Permission Java Codes.

How to enable upload from webview in Sketchware? Now that Sketchware has a block to add java code directly in the project, it is possible to enable file upload in webview. To enable file upload in webview in sketchware app, follow the steps given below. 1. Insert a webview in VIEW area in the sketchware project. Note the ID of webview, usually it is webview1. 2. In LOGIC area of project, in onCreate event, add the block add source directly and copy the following code in it: webview1.setWebChromeClient(new WebChromeClient() { // For 3.0+ Devices protected void openFileChooser(ValueCallback uploadMsg, String acceptType) { mUploadMessage = uploadMsg; Intent i = new Intent(Intent.ACTION_GET_CONTENT); i.addCategory(Intent.CATEGORY_OPENABLE); i.setType("image/*"); startActivityForResult(Intent.createChooser(i, "File Browser"), FILECHOOSER_RESULTCODE); } // For Lollipop 5.0+ Devices public boolean onShowFileChooser(WebView mWebView, ValueCallback<Uri[]> filePathCallb...

Latest Posts

Jangle Nick Name Facebook.

Facebook Account Running Verify

Hacking Apps

Facebook account Smile Name Symbol.

Facebook account Blank Name code

Convert Your Page into Profile

How to hack facebook messenger account

How to open any zip file.

How to clone any app using Lucky Patcher.