I am currently designing a native android application. I am planning to use jQuery Mobile web view as my interface and do all the calculations with java back-end. (still deciding using phonegap or not)
I have some difficulties implementing a page that allows a user to fill in a form and pass the variable to the android java part.
Researching all morning, I have learned how to interact between javascript/html and java with addJavascriptInterface(). But the only thing I can find that answer my question is with JSON. That seems a little complicated. Is there a way I can pass the variable as a parameter of a java function?
(I learned that if I do not use a web view, I can simply use getText() or getSelectedItem() with default UI to do what I want to)
I apologize there is no code avaliable, since this is still in designing stage, and I am a little new to android sdk.
Thanks
JavaScriptInterfacefunction.