Use below link to view sample code : Download Link
Use below link to view sample code :Download Link
WebView is a view that display web pages inside your application. You can also specify HTML string and can show it inside your application using WebView. WebView makes turns your application to a web application. <WebView xmlns:android=”http://schemas.android.com/apk/res/android” android:id=”@+id/webview” android:layout_width=”fill_parent” android:layout_height=”fill_parent” /> WebView webview = (WebView) findViewById(R.id.webview); webview.loadUrl(“http://www.google.com”); If you click on any link inside the […]
WebView webview = (WebView) findViewById(R.id.webview); webview.getSettings().setJavaScriptEnabled(true); webview.getSettings().setBuiltInZoomControls(true); webview.loadUrl(“https://docs.google.com/gview?embedded=true&url=<PDF_COMPLETE_URL>”); webview.setWebViewClient(new WebViewClient() { @Override public void onPageFinished(WebView view, String url) { } });
StrictMode.ThreadPolicy policy = new StrictMode.ThreadPolicy.Builder().permitAll().build(); StrictMode.setThreadPolicy(policy);