To take pictures, you must use the web operations API . Simply put, this is the equivalent of Android Intents for Open Web.
I would write a lot about this, but there are good code examples, like this one , implementing just that. You have a few things:
Create web activity:
var recordActivity = new MozActivity({ name: "record" });
Define the onsuccess and do whatever you want with the result:
recordActivity.onsuccess = function () { console.log(this); }
There are a few more details, and they are all listed on this post in Hacks .
Ricardo panaggio
source share