Forums Register Login

Does Pro Android Web Apps cover how to expose native functionality to the JS runtime?

+Pie Number of slices to send: Send
If PhoneGap does not expose a native feature that I wish to use in a web app, does Pro Android Web Apps cover how I could go about exposing this "extra" native functionality to the JS engine?
+Pie Number of slices to send: Send
Yes there is entire chapter on PhoneGap, how to install, to get it run and off course getting benefit of the extra lib that are exposed through JS (camera, vribrate etc ...)
1
+Pie Number of slices to send: Send
Hey Daniel,

Good question. As Seb pointed out we do have quite a bit of coverage around the PhoneGap topic, and in Chapter 12 we do make use of an excellent PhoneGap plugin by Boris Smus to integrate with Android intents inside a web app.

With the book having a focus on the web side of mobile application development I decided not to throw people into the deep end with writing any Java code, but the process is reasonably easy to understand and I would be more than happy to provide some information on the topic online somewhere if this is something you can't find elsewhere. I think Boris' post provides some good information on the process though and is an excellent starting point.

I think the guys at Nitobi (creators and maintainers of PhoneGap) will provide improved documentation on how to write PhoneGap plugins in time, but for now if you have happy reading some source code, then there is a repository on GitHub that has some pre-built plugins that you can have a look at.

Hope that helps.

Cheers,
Damon.
+Pie Number of slices to send: Send
Hi Damon,

Those are excellent resources. Thank you.
+Pie Number of slices to send: Send
This is all very interesting indeed... but doesn't that miss the whole point of using web technology (namely HTML5, CSS, Javascript, PHP) ?
If I have to use a middleware such as PhoneGap, that means I have to develop an app on the Android phone, install it (post it in the Android market if I want other users to be able to access my web-based pages), and only then shall I be able to use web-page-based apps taking advantage of the webcam interface...
Or am I missing something ?
I didn't do it. You can't prove it. Nobody saw me. The sheep are lying! This tiny ad is my witness!
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com


reply
reply
This thread has been viewed 1895 times.
Similar Threads
Web Services
Android web app security
Questions on Pro Android Web Apps book
Some questions about Pro Android Web Apps book
Question about the "learning android" book
More...

All times above are in ranch (not your local) time.
The current ranch time is
Mar 28, 2024 03:58:11.