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

App crashes when selecting photo from PhotoLibrary in Android Device

3 Answers 115 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Gaja
Top achievements
Rank 1
Gaja asked on 28 Aug 2013, 10:14 AM
Hi All,

I was trying to select a photo from the photo library using a Android device , the app crashed. I have followed the example from the cordova site properly i.e  http://docs.phonegap.com/en/2.0.0/cordova_camera_camera.md.html   . When the photo is selected by clicking than the image can be selected . There is also one more thing suppose you choose to take photo first and then use the photolibrary method then the app does not crash. Has anyone has noticed this problem . Please give me a solution.

Thanks

Gaja Naik

3 Answers, 1 is accepted

Sort by
0
Steve
Telerik team
answered on 28 Aug 2013, 12:39 PM
Hello Gaja,

We could not reproduce such problem with our Camera sample using several Android devices. Can you reproduce this problem with our sample and on what device/Android version? Have you verified the device has enough memory to handle the image loading? Note that images from the Photo Album will not be downscaled to a lower quality, even if a quality parameter is specified (per Cordova Camera API).

Regards,
Steve
Telerik

Looking for tips & tricks directly from the Icenium team? Check out our blog!
Share feedback and vote for features on our Feedback Portal.
0
Gaja
Top achievements
Rank 1
answered on 29 Aug 2013, 09:14 AM
Hi Steve,

I am using Lava Iris 501 Android phone, it has Jelly Bean operating system. I don't think memory is issue here since, it selects the photo from the photolibrary properly without crashing after using the camera photo selection method first.
But when you start the app for the first time and directly go to select the photo from the photolibrary then the app crashes. 
Also i found one more problem, the photolibrary  nor the camera launches when testing the app from a Ipad device.  I am using Ipad 3 with IOS 6.1.

I tried the same code also , given in the cordova camera example, there also theses same issues are present.

Thanks

Gaja Naik
0
Steve
Telerik team
answered on 30 Aug 2013, 02:50 PM
Hello Gaja,

We have tested on several Android JB devices with our camera sample and cannot reproduce such a problem. It is worth noticing that all of them have more than 512 MB RAM.
Our suggestion is to use a more common brand phone for your tests.

Regards,
Steve
Telerik

Looking for tips & tricks directly from the Icenium team? Check out our blog!
Share feedback and vote for features on our Feedback Portal.
Tags
General Discussions
Asked by
Gaja
Top achievements
Rank 1
Answers by
Steve
Telerik team
Gaja
Top achievements
Rank 1
Share this question
or