cordova-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "boniface pereira (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (CB-12909) cordova-plugin-camera crashes after taking picture
Date Mon, 12 Jun 2017 14:15:00 GMT

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

boniface pereira commented on CB-12909:
---------------------------------------

[~jchavarria1983@yahoo.com] No, I'm using Kitkat 4.4.4


> cordova-plugin-camera crashes after taking picture
> --------------------------------------------------
>
>                 Key: CB-12909
>                 URL: https://issues.apache.org/jira/browse/CB-12909
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: cordova-plugin-camera
>    Affects Versions: cordova@7.0.0
>            Reporter: boniface pereira
>
> Im using cordova version 7+
> and android version 4.4.4
> This works if i pick an image from my library, but not with camera.
> After i capture the image, the app simply restarts or sometimes crashes.
> here is my code: 
>     options: CameraOptions = {
>         quality: 75,
>         destinationType: this.camera.DestinationType.FILE_URI,
>         encodingType: this.camera.EncodingType.JPEG,
>         mediaType: this.camera.MediaType.PICTURE,
>         sourceType: this.camera.PictureSourceType.CAMERA,
>         targetWidth: 200,
>         targetHeight: 200,
>         saveToPhotoAlbum: true,
>     };
>     this.camera.getPicture(this.options).then((data) => {
>             if (data.substr(0, 7) == 'content') {
>                 this.filePath.resolveNativePath(data).then(newPath => {
>                     this.startUpload(); // external function
>                 })
>             } else {
>                 this.startUpload();
>             }
>         }, err => {
>         });



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For additional commands, e-mail: issues-help@cordova.apache.org


Mime
View raw message