Add the following code inside of 'onCreate(Bundle savedInstanceState)' function,
locationview.setWebViewClient(new WebViewClient()
{
public void onReceivedError(WebView view, int errorCode, String description, String failingUrl)
{
locationview.loadUrl("file:///assets/error.html");
} });
The above URL will be load if the web page not found in the webview control.
No comments:
Post a Comment