Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

HTML5 open iPhone or Android phone camera

Tags:

iphone

camera

I'm currently deciding what way to build my Iphone/Android app. I just need to know how to open the iPhone/Android phone camera using HTML5/Javascript etc or whether it can even be done outside of building a native app?

like image 236
hooligan Avatar asked May 27 '11 01:05

hooligan


People also ask

Can HTML5 run on Android and iOS?

Portability to Other Platforms On mobile operating systems like Android, iOS, Windows Phone and Blackberry, HTML5 applications are usually hosted inside Apache Cordova (aka PhoneGap).

Can a web app access iPhone camera?

Before apps use the camera or microphone on your iPhone, they're required to request your permission and explain why they're asking. For example, a social networking app may ask to use your camera so that you can take and upload pictures to that app.

Can a web app access Android camera?

On Android devices, you can access the camera from the Browser widget. The feature is available on devices with Android OS 5.0 and later. For camera access, the Browser widget HTML page must contain the following code.

Can HTML5 run on Android?

HTML5 pros and cons And since JavaScript runs on any browser, an HTML5 app will run on any mobile device (at least in theory).


1 Answers

I'm not sure what tool you're using, but here's the phonegap answer: http://docs.phonegap.com/phonegap_camera_camera.md.html

like image 170
Robot Woods Avatar answered Oct 21 '22 14:10

Robot Woods