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
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.
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!