My Response is the form of html data,which contain string data and image,when i load the content in web view then it show proper result on the android versions 3.0 but it give me error on android version 2.3.
error is: 01-06 14:54:18.735: D/test(32652): error code:-12 01-06 14:54:18.735: D/test(32652): discrip:The page could not be opened because the URL is invalid.
Here is my Code:
mWebViewFirst.loadData(setterHtmlScreenList.get(0).getScreenText(),
"text/html","ISO-8859-1" );
mWebViewFirst.getSettings().setJavaScriptEnabled(true);
mWebViewFirst.getSettings().setDomStorageEnabled(true);
mWebViewFirst.setWebViewClient(new WebViewClient(){
@Override
public void onReceivedError(WebView view, int errorCode,Sring description, String failingUrl) {
// TODO Auto-generated method stub
Log.d("test","error code:"+errorCode);
Log.d("test","discrip:"+description);
super.onReceivedError(view, errorCode, description, failingUrl);
}
});
Please Help Me.Thanks in advance.