This is a migrated thread and some comments may be shown as answers.

Cordova Camera Sample Crashes After Picture Taken

3 Answers 222 Views
General Discussion
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Matthew
Top achievements
Rank 1
Matthew asked on 01 Aug 2013, 01:14 AM
I have an Android Galaxy S3.

I cloned the camera sample and didn't change anything. On my device, anytime after I get the picture, the app crashes before being able to display to the smallImage document.

How can I fix this?

3 Answers, 1 is accepted

Sort by
0
Steve
Telerik team
answered on 01 Aug 2013, 08:54 AM
Hello Matthew,

We can't reproduce this in local test on Galaxy S3, but have suspicion what might be going on. According to the Cordova Camera API docs,

Note: The image quality of pictures taken using the camera on newer devices is quite good ...Encoding such images using Base64 has caused memory issues on many newer devices. Therefore, using FILE_URI as the 'Camera.destinationType' is highly recommended.

Most likely your phone is swarmed with other running processes at the moment and doesn't have enough memory to process the image. Please free up memory and try again. Another option is to use the sample code from the API and specify FILE_URI as destinationType instead.

Regards,
Steve
Telerik

Do you enjoy Icenium? Vote for it as your favorite new product here (use short code H048S).
Looking for tips & tricks directly from the Icenium team? Check out our blog!
Share feedback and vote for features on our Feedback Portal.
0
raja
Top achievements
Rank 1
answered on 05 Jun 2014, 07:03 AM
hi i do have the same problem....... the app crashes when i capture photo
0
Zdravko
Telerik team
answered on 09 Jun 2014, 12:14 PM
Hi Raja,

We have seen such complaints before, but we have never been able to reproduce locally.
As a solution I will recommend using my colleague's advise from below and follow Cordova's best practices from their documentation and forums.
Thanks.

Regards,
Zdravko
Telerik
 

Share what you think about AppBuilder and Telerik Platform with us in our feedback portal, so we can become even better!

 
Tags
General Discussion
Asked by
Matthew
Top achievements
Rank 1
Answers by
Steve
Telerik team
raja
Top achievements
Rank 1
Zdravko
Telerik team
Share this question
or