Whenever my app accesses the camera from my Android phone, it will sometimes place the picture on the page properly after the camera exits, but most of the time, once the camera turns off, the app restarts completely, making it impossible to make any use of the picture that was taken. However it seems to work fine on the IPhone.
I looked through the docs, changed the AndroidManifest.xml file the way others have, but nothing is curing the problem.
Any ideas?
Help get this topic noticed by sharing it on
Twitter,
Facebook, or email.
Twitter,
Facebook, or email.
-
I cannot reproduce this issue using build. A good example application is the Kitchen sink application.
Hardeep Shoker -
-
I tried that but, for some reason in my app, about 50% of the time if the dial pad, or camera is called, when you push the "back" button on the Android it will reload the entire app. It only happens on the Android. Works fine on the Iphone.
-
-
This sounds that it may be an issue with PhoneGap android. I would suggest filing a bug on the Github page or posting a thread on the Google Groups.
Hardeep Shoker -
-
I also get this on Phonegap 1.2.0 with Android. I'm not sure whether it's the whole app that's restarting or just web view. I'm using Sencha Touch for the UI.
-
-
I noticed this will happen if you're testing your app repeatedly. It must be a memory issue on the Android. Restarting the phone seems to correct the problem.
-
-
Are you guys able to upload the image to a server? Because I'm having no luck doing so after the recent updates.
-
-
Issues with capture functions.
When trying to take a photo, the app quits just after the camera takes an image or photo, same with video and audio recorder.
Samsung Galaxy S / Running ICS 4.0.4 -
-
i found this at the internet but i don't know how to handle it
http://stackoverflow.com/questions/83...#
https://issues.apache.org/jira/browse... -
-
now aim writing my own camera Plugin.
From the sdk folder you can use a good Sample.
samples\android-xx\ApiDemos\src\com\example\android\apis\graphics
CameraPreview.java
The Problem is, that file is an Activity and i don't know how to ad this one as Plugin. Can anyone Help me with that? -
-
Same i am also facing this issue for Samsung galaxy s2 (2.3.5)and for other like lg optimus(2.2) and Samsung Galaxy Y Duos lite(2.3.6) it works fine. if any have resolved this issue then please help me.
-
-
Hi Rajkumari,
The problem is when the camera application starts, it generally causes some Android devices to throw an Out Of Memory or low memory error, which then Android's garbage collector comes and kills your app. So after you take the picture, your app is actually restarted.
There are many posts and plugins regarding this. I started a thread in the Google Groups forum, and wrote some JavaScript code that will find the last picture taken upon an app restart so you can then upload it automatically or do whatever you need after the app restarts without taking a picture again.
You can see an example in the forums at https://groups.google.com/forum/m/?fr...
Hope that helps
John -
-
-
Loading Profile...



EMPLOYEE


