I'm currently working on an Android application that uses Phonegap, and I would like to be able to "share" data between my Java code and my javascript code. Essentially, the user experience exists among the various html and javascript pages I have, but there are certain strings I want to pass to a javascript function when it is called from within the html page it is tied to.
Is this possible? I've seen some things about Applets, but don't fully understand what that means for my code. Assuming I can save the string I want as a String object somewhere in my java code, can I tell my javascript function to go find it, grab it, convert it to a javascript string object, and then work with it normally from there?
Thank you!