Topic
  • 1 reply
  • Latest Post - ‏2012-04-29T11:44:55Z by IdanAdar
SystemAdmin
SystemAdmin
570 Posts

Pinned topic Question about communication between android native code and client-side js

‏2012-04-25T03:16:47Z |
Hi There

I'm running WL Studio 4.2.2.1294 and WL server Build Version: 4.2.2.1283

I am developing an app in IBM CDL. I used both android native code and client-side javascript. When the app was running in android native code, it want to use html and js feature, such as to show a main html's div or to to invoke a client-side js function. Is there anyone can give any suggestion?
Thanks, Tim
  • IdanAdar
    IdanAdar
    288 Posts

    Re: Question about communication between android native code and client-side js

    ‏2012-04-29T11:44:55Z  
    Hi, to accomplish such communication, you need to use a PhoneGap plug-in.
    Please refer to Module 9.3 - Android Development Using the PhoneGap Plugin.

    • Note: the documentation supplied in the above link is not meant for the Worklight 4.2.2 build you are using (that utilizes jQuery).
    You may need to slightly change code sections where/if applicable.