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..
Asked
Active
Viewed 126 times
3 Answers
0
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.
![](../../users/profiles/220579.webp)
Kumar Bibek
- 8,851
- 2
- 36
- 64
0
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:
0
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.
![](../../users/profiles/556617.webp)
Paul Beusterien
- 21,795
- 5
- 61
- 115