• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Bear Bibeault
  • Jeanne Boyarsky
  • Tim Cooke
Sheriffs:
  • Knute Snortum
  • Junilu Lacar
  • Devaka Cooray
Saloon Keepers:
  • Ganesh Patekar
  • Tim Moores
  • Carey Brown
  • Stephan van Hulst
  • salvin francis
Bartenders:
  • Ron McLeod
  • Frits Walraven
  • Pete Letkeman

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

 
Ranch Hand
Posts: 90
1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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?
 
author
Ranch Hand
Posts: 33
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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 ...)
 
author
Greenhorn
Posts: 23
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Daniel Trebbien
Ranch Hand
Posts: 90
1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Damon,

Those are excellent resources. Thank you.
 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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 ?
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!