I am trying to call the loadUrl method in a webview with the below url
http://stage.realtylog.net/iPhone/functions.php?username=xxx&ID=xxx&act=readFileAndPri
change your url to:
webView.loadUrl(MessageFormat.format("{0}{1}{2}","http://stage.realtylog.net/iPhone/functions.php",URLEncoder.encode("?username=xxxx"),URLEncoder.encode("&ID=xxxx"),URLEncoder.encode("&act=readFileAndPrint")));
js file like this:
data= JSON.parse(decodeURIComponent(data));