Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

PhoneGap application quits once the camera captures the image

I just copied the full example shown in this link http://docs.phonegap.com/en/1.7.0/cordova_camera_camera.md.html#Camera and build one application and tested it on my Samsung Galaxy SCL(android). Once i captures the image using the cam the application is getting closed.

like image 305
Dinoop mathew Avatar asked Jan 22 '26 02:01

Dinoop mathew


1 Answers

Are you using a DestinationType of DATA_URL or FILE_URI? It is recommended to use FILE_URI and then use the File object to access the file. DATA_URL returns a Base64 encoded image which can cause out of memory errors.

like image 66
codemonkey Avatar answered Jan 24 '26 15:01

codemonkey



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!