I am making an app in which i have to use javascript in android .Can anyone tell me how to use javascript in android , i mean to say will it be used in java class or any other means.Any help will be appreciated. Thanks..
3 Answers
Checkout this link for a few tips. http://techdroid.kbeanie.com/2010/10/android-webview-javascript-and-css.html
It depends on your application whether you want to use pure JS code, or you would have to have a Java-JS bridge.
Comments
This previous poster figured out how to call JS from his android app:
Android Calling JavaScript functions in WebView
Here's a post regarding calling your android app from your JS:
Comments
Use PhoneGap and you can just develop JavaScript and not worry about Java. The PhoneGap framework will take care of the necessary JavaScript to Android Java bridging.