how to open pdf in webview android 6
<p>I managed to open a pdf link inside a webview in android 4 and 5 but in android 6 the same code do not open , here my code</p>

<pre><code>    webPDF = (WebView)findViewById(R.id.webPDF);

    String auxPDF = "http://example link to pdf.pdf";
    webPDF.getSettings().setJavaScriptEnabled(true);
    webPDF.getSettings().setLoadWithOverviewMode(true);
    webPDF.getSettings().setDisplayZoomControls(true);
    webPDF.loadUrl("https://docs.google.com/gview?embedded=true&amp;url="+ auxPDF);
</code></pre>

<p>i try this other codes too   </p>

<pre><code>webPDF.getSettings().setUseWideViewPort(true);
webPDF.getSettings().setDomStorageEnabled(true);
</code></pre>

<p>here the permissions to open in main activity:</p>

<pre><code>     if(ActivityCompat.checkSelfPermission(MainActivity.this, Manifest.permission.INTERNET)
            != PackageManager.PERMISSION_GRANTED){
        ActivityCompat.requestPermissions(MainActivity.this,
                new String[]{Manifest.permission.INTERNET}, 123);
    }
    if(ActivityCompat.checkSelfPermission(MainActivity.this, Manifest.permission.ACCESS_NETWORK_STATE)
            != PackageManager.PERMISSION_GRANTED){
        ActivityCompat.requestPermissions(MainActivity.this,
                new String[]{Manifest.permission.ACCESS_NETWORK_STATE}, 123);
    }
    if(ActivityCompat.checkSelfPermission(MainActivity.this, Manifest.permission.WRITE_EXTERNAL_STORAGE)
            != PackageManager.PERMISSION_GRANTED){
        ActivityCompat.requestPermissions(MainActivity.this,
                new String[]{Manifest.permission.WRITE_EXTERNAL_STORAGE}, 123);
    }
    if(ActivityCompat.checkSelfPermission(MainActivity.this, Manifest.permission.READ_EXTERNAL_STORAGE)
            != PackageManager.PERMISSION_GRANTED){
        ActivityCompat.requestPermissions(MainActivity.this,
                new String[]{Manifest.permission.READ_EXTERNAL_STORAGE}, 123);
    }
</code></pre>

<p>the only thing that show is a blank screen on android 6.0.1!
any one can help me? thanks</p>