android - How to add custom error page when there is no internet connection available -


The default error page "webpage is not available" How do I add my own error page when no Internet connection is available? Can i

I found the solution by adding the code below

  MWebView .setWebViewClient (New MyWebViewClient () {reserved reserved for public videos (webview webview, IT, string s, string s1) {mWebView.loadUrl ("file: ///android_asset/error.html"}}}});   

Put your own HTML error page in the property folder

Comments

Popular posts from this blog

c# - passing input text from view to contoller with FacebookContext using Facebook app -

Calling a C++ function from C# by passing a string with variable size to it -

ios - Does Core Data autoupdate a many to many relationship on saving -