[ 
https://issues.apache.org/jira/browse/CB-7212?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15230036#comment-15230036
 ] 

Max von Preuschen commented on CB-7212:
---------------------------------------

I'm having exactly the same issue as Amrit.
<input type="file"> in the browser provides the option to "Choose and action" 
(Camera or Documents).
Same code wrapped as cordova app jumps to "Documents"-library right away (no 
camera option).

Different combinations of input-attributes: 'accept' and 'capture', didn't work:
<input type="file" accept="image/*" capture>
<input type="file" accept="image/*" capture="camera">

Tested on:
Nexus 7 (Android 5.1.1)
Samsung Galaxy S7 (Android: 6.0.1)

> Could not open camera with <input type="file" accept="image/*;capture=camera">
> ------------------------------------------------------------------------------
>
>                 Key: CB-7212
>                 URL: https://issues.apache.org/jira/browse/CB-7212
>             Project: Apache Cordova
>          Issue Type: Improvement
>          Components: Android
>    Affects Versions: 3.5.0
>            Reporter: Gao Chun
>            Assignee: jcesarmobile
>            Priority: Minor
>
> Reproduce Test Steps
> =======================================================
> 1. create index.html which includes the following tag:
> <input type="file" accept="image/*;capture=camera">
> 2. Wrap the web app to android apk with cordova-android
> 3. Launch app in device, and click the input tag.
> Expected Outcome
> =======================================================
> The camera can be selected to take a phone
> Actual Outcome
> =======================================================
> Failed to launch camera when tapping the the input tag.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to