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);
A basic Android application has no permissions associated with it by default, meaning it cannot do anything that would adversely impact the user experience or any data on the device. To make use of protected features of the device, you must include one or more <uses-permission> tags in your app manifest. List of android permission: String ACCESS_CHECKIN_PROPERTIES Allows […]