mWebView2 = new WebView(WEB2.this);
        mWebView2.getSettings().setJavaScriptEnabled(true);
        WebSettings webSettings = mWebView2.getSettings();
        webSettings.setJavaScriptEnabled(true);
mWebView2.goBack();
        mWebView2.goBackOrForward(20);
        mWebView2.setInitialScale(1);
        mWebView2.getSettings().setUseWideViewPort(true);
        mWebView2.getSettings().setDisplayZoomControls(true);
        mWebView2.setWebViewClient(new WebViewClient());
        mWebView2.loadUrl("https://docs.google.com/gview?embedded=true&url=http://www.uobabylon.edu.iq/uobColeges/ad_downloads/4_25835_742.pdf");
        setContentView(mWebView2);
I would like to create a Button to download any online pdf file, and when click on this Button ot start the download.
I executed this code to open pdf file , but i want to add a Button to download that pdf