Can you launch the native Camera App from an Html 5 Web App? Can you launch the native Camera App from an Html 5 Web App? android android

Can you launch the native Camera App from an Html 5 Web App?


Android 3.0 Honeycomb added Device API support. Google I/O 2011 presentation shows an example on slide 30:

<input type="file" accept="image/*;capture=camera">

It also points to a test site that not surprisingly does not do much on my Froyo phone.

Anybody with a tablet tried it and can tell us what it does and does not do?

4.0 Icecream Sandwich was announced. Code drop may not happen for several months or longer and actual devices may show in the market around Christmas. As to Icecream on current generation of Froyo / Gingerbread phones, official ODM/carrier 4.0 releases will never happen? I'd love to be proved wrong on this. Any word from custom ROMs community?


I tried this:

<input type="file" accept="image/*" capture="camera" />

from here: https://coderwall.com/p/epwmoa

With my Galaxy S2 phone (on Chrome).

It's working and open directly the camera.


if someone need, i'm using the confirmed answer on asp.net.i added to asp.net control the attributes accept="image/*" capture="camera"

<asp:FileUpload ID="FileUpload1" runat="server" type="file" accept="image/*" capture="camera" /><asp:ImageButton ID="bt_AttUp" runat="server" onClick="bt_AttUp_Click" />

and on .net server side

FileUpload1.SaveAs("PathDestination")