2

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 Answers3

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.

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:

How to call android application from javascript

Community
  • 1
  • 1
SBerg413
  • 14,046
  • 6
  • 55
  • 87
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.

Paul Beusterien
  • 21,795
  • 5
  • 61
  • 115