I am new in android.
I am trying to open PDF from url in webview. Its working fine for small PDF but if i receive large PDF from server, Then it give error,
(No Preview Available).
I want to show pdf from server only in view mode and user should not download and also need to clear cache after back press. Below are the code which i am using to open the PDF from server.
Code:
webview.getSettings().setJavaScriptEnabled(true);
webview.getSettings().setPluginState(WebSettings.PluginState.ON);
webview.setWebViewClient(new Callback());
webview.loadUrl("http://docs.google.com/gview?embedded=true&url=" + pdfUrl);