I am implementing webview application in android. When i am trying to load https url one or two times it finishes the activity. Agian tryin
Add internet settings in your manifest.xml
<uses-permission android:name="android.permission.INTERNET" />
and check can you access internet on your device.
Add your manifest file
<uses-permission android:name="android.permission.INTERNET" />
When ever you accessing web content need to get internet permission then only it will load.
You should remove this
super.OnReceiveSslError(view,handler,error);
December 2016 answer:
If this happens only on certain devices with Android 5+ and only on certain pages, it's most likely due to this chromium bug:
https://www.chromium.org/developers/androidwebview/webview-ct-bug
The solution is to either:
Try this
WebView webview = (WebView)findViewById(R.id.webView);
Webview.setBackgroundColor(0);
webview.getSettings().setJavaScriptEnabled(true);
webview.loadUrl("https://www.facebook.com");
webview.setScrollBarStyle(View.SCROLLBARS_INSIDE_OVERLAY);
Try to use below attributes :
webView = (WebView) findViewById(R.id.webView1);
WebSettings settings = webView.getSettings();
settings.setJavaScriptEnabled(true);
settings.setDomStorageEnabled(true);