[ https://issues.apache.org/jira/browse/CB-12491?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15878918#comment-15878918
]
Kerri Shotts commented on CB-12491:
-----------------------------------
The current version of the plugin is 2.3.1 and the current version of cordova-android is 6.1.2.
Please update your plugins and platforms to the current version and see if the problem persists.
> The camera does not work Android 7.0
> -------------------------------------
>
> Key: CB-12491
> URL: https://issues.apache.org/jira/browse/CB-12491
> Project: Apache Cordova
> Issue Type: Bug
> Components: Android, Plugin Camera
> Environment: {quote}
> cordova 6.5.0
> Installed platforms:
> android 6.0.0
> {quote}
> {quote}
> cordova-plugin-camera 2.1.1
> {quote}
> {quote}
> Android ADK
> Installed platforms:
> Android 7.1.1 API 25
> Android SDK Tools 25.2.5
> Android SDK Platform-tools 25.0.3
> {quote}
> Reporter: leekx
> Priority: Critical
> Labels: beginner, newbie, test
> Fix For: Master
>
>
> {code:title=javascript|borderStyle=solid}
> document.getElementById("paizhao").addEventListener("click",loadImage);
> function loadImage() {
> navigator.camera.getPicture(onLoadImageSuccess, onLoadImageFail, {
>
> destinationType: Camera.DestinationType.DATA_URL
>
> });
> }
> function onLoadImageSuccess(imageURI) {
> var src = "data:image/jpeg;base64," + imageURI;
> document.getElementById("getImage").src =src;
> }
> function onLoadImageFail(message) {
> navigator.notification.alert("error:" + message, null, "");
> }
> {code}
> {code:xml}
> <p>
> <input type="button" value="phone" id='paizhao' />
> <img src="" id="getImage" style="width: 120px;height: 120px;"/>
> </p>
> {code}
> !https://lh3.googleusercontent.com/IRnf6HefAnZp9mMeUL9qD6Ehjyl6ecyMpKy2u7xotclF8kkEuZnWe3zDXbLyQKdmWybZZPoxdBogdr5bLB4EO8pAHXWRFy9s7ZSMOkjcNAhIRQC5GgMBOGmvQsfvM7wvzVzLMQSKkuzUPcm5zyHwNt8Ep771CaZQGNXX7H1H4YkG93rNDFCKndJhRNrTWwb_vMLJ5BMjXJ1Y5qkjdbpYc3QesTA0gYuttcozUkIilQNoVEMxXicJ7GF8jrFchWvsiZsh5pbSawlnsPa8ynuZk8jWX73RqiJnXzkyZTKxqW7Nu2V4ZpYywBioJgkqEGphP71pvTrQPdyAE5bvLJuNalEiUeZIR3n4ZXBIXUpF8xTCDbpv8fEDjaRLSOpkTsdiL7XH8ycwyZ77YgEI15ku_Q0VffPln0g-2f65i6rExiDHx-JVJJhAyanjfc49NFHVq8lnkGDkUdH-nrj9d1V8KClzxdygKfDF0kVJG4OQM5v0JYKrzn7WlkbkMD7fV6YD3rzeTmakMEcbL3R9BC8v9WvdTiFwdbU1_-AxK7I6hIfaXIb5EZcDvV5TCoLTvd4B_mxpnKzMfDJGU0Huwk0BqauoL90LhGjSMuwlKelJbk2Ks7FG3a4=w217-h385-no!
> Listen to the incident, tell me *exposed beyond app through ClipDate.ltem.getURI ()*
how to solve?
> This question bothered me for a long time, hoping to get your help, thank you
--
This message was sent by Atlassian JIRA
(v6.3.15#6346)
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For additional commands, e-mail: issues-help@cordova.apache.org
|