Is it possible to write code in Java and call it in Phonegap HTML5? Can you show me an example for that? I tried the example but it is showing errors.
Links:
Is it possible to write code in Java and call it in Phonegap HTML5? Can you show me an example for that? I tried the example but it is showing errors.
Links:
here is the answer for your questions:
Is it possible to write code in Java and call it in Phonegap HTML5?
Yes, the link you have given is an example for that. Phonegap has lot of API's which are used to access the device's functions through your HTML 5 code. (more specifically through javascript). Those are implemented using java code by the phonegap guys. And apart from these, if you are sure that you need something else that is available on native coding, ie using native android ( through java code), then you need to make some plugins to satisfy your requirement.
Can you show me an example for that?
seems the link which you gave above is a good example.
I tried the example but it is showing errors.
Please specify what is the error, and where do you get that.
Yes, of course it is possible. Do us a favour and follow the plugin API as it will make your life easier.