How to json parse a url parameter in android webview?
问题 I have a webview where I am injecting javascript after page has finished loading (onpagefinished)as follows: @Override public void onPageFinished(WebView view, String url) { String jscontent = ""; try{ AssetManager manager = view.getContext().getAssets(); InputStream is = manager.open("page.js"); InputStreamReader isr = new InputStreamReader(is); BufferedReader br = new BufferedReader(isr); String line; while (( line = br.readLine()) != null) { jscontent += line; } is.close(); } view.loadUrl(