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?
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).
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.
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.
HTML5 pros and cons And since JavaScript runs on any browser, an HTML5 app will run on any mobile device (at least in theory).
I'm not sure what tool you're using, but here's the phonegap answer: http://docs.phonegap.com/phonegap_camera_camera.md.html
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With