Add download in WebView|Enable download in webview|Bin file download problem solved|Android Studio

 

Add download in WebView|Enable download in webview|Bin file download problem solved|Android Studio





mywebView.setDownloadListener(new DownloadListener() {

    public void onDownloadStart(String url, String userAgent,
String contentDisposition, String mimetype,
long contentLength) {
Intent i = new Intent(Intent.ACTION_VIEW);
i.setData(Uri.parse(url));
startActivity(i);
}
});

Leave a Comment