article thumbnail

Best Of Both Worlds: Mixing HTML5 And Native Code

mobile.smashingmagazine.com

One difference is that the function reference must be prefixed with the JavaScript: protocol scheme: public void sendNamesToWebView() { JSONObject namesJson = new JSONObject(); try { namesJson.put("fname", fnameEditText.getText().toString()); Both sample applications are available in the GitHub repository for your reference.