నీ కోసం అస్త్రం తో వస్తున్నాను.. ఎందుకురా అంత తొందర hello
Test
Thursday, August 7, 2014
Web View
Binding JavaScript code to Android code
When developing a web application that's designed specifically for the
WebView
in your Android application, you can create interfaces between your JavaScript code and client-side Android code. For example, your JavaScript code can call a method in your Android code to display a Dialog
, instead of using JavaScript'salert()
function.
To bind a new interface between your JavaScript and Android code, call
addJavascriptInterface()
, passing it a class instance to bind to your JavaScript and an interface name that your JavaScript can call to access the class.
For example, you can include the following class in your Android application:
Subscribe to:
Posts (Atom)