I am loading url in android webview using below code
webviewShowPost.loadUrl(URL);
I want to check if no data connectivity available then webview instead of showing blank view, I can display Toast of no connectivity.
Thanks
I am loading url in android webview using below code
webviewShowPost.loadUrl(URL);
I want to check if no data connectivity available then webview instead of showing blank view, I can display Toast of no connectivity.
Thanks
you can get the Progress Percentage value in above webview method
below code in progress is value of progerss
You want to check if there is network connectivity before loading the page, which means you want to do this: https://stackoverflow.com/a/2001824/960048
you can always use WebViewClient for this purpose .
Please try this