I am also having this problem.
I grabbed the latest 0.9.3. code from github and I am still getting
the error:
The method setBooleanProperty(String, boolean) is undefined for the
type DroidGap App.java /CordApp/src/com/phonegap/cordapp line 13
--
You received this message because you are subscribed to the Google
Groups "phonegap" group.
To post to this group, send email to phon...@googlegroups.com
To unsubscribe from this group, send email to
phonegap+u...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/phonegap?hl=en?hl=en
For more info on PhoneGap or to download the code go to www.phonegap.com
I'm having a real hard time reproducing the issue on my Android 2.1
device. I haven't upgraded to 2.2 as another member of the group has
already upgraded and we want to cover as many different Android OS
versions as possible.
However, I've followed up a lead that Bryce was looking at before he
headed off for vacation. I've got a new phonegap.jar file that frees
up memory after each picture is taken. If anyone would like to
volunteer to try it out it would be greatly appreciated.
Thanks...
Simon Mac Donald
http://hi.im/simonmacdonald
> --
> You received this message because you are subscribed to the Google
> Groups "phonegap" group.
> To post to this group, send email to phon...@googlegroups.com
> To unsubscribe from this group, send email to
> phonegap+u...@googlegroups.com
Dear Greg Wilson,
I am also experiencing the same issue. I am attaching a very simple example (CameraTest) that causes my entire app to restart. The culprit is the simple line "
startActivityForResult(cameraIntent, CAMERA_PIC_REQUEST);"
It doesn't pass the result back to the app. When it takes a photo, it is supposed to save a simple thumbnail to an imageview. Instead, it forces the app to restart completely.
Works on Samsung Galaxy S2 and LG Optimus, and every other phone we've tried but not on a Motorola Droid 3 on Android 2.3.4.
There is an entire thread here that describes people having the exact same issue, mostly with Motorola phones and some LG phones.
According to this thread http://comments.gmane.org/gmane.comp.handhelds.phonegap/16506 replied to by one of the PhoneGap developers, this issue is caused by the vendor. Simon replies - "It sounds like you are suffering from the issue that the default intent for taking picture/video does not call onActivityResult properly...This is a vendor bloatware issue and I'm not sure what I can do to fix it."
Kind regards,
Andrea
CameraTest.zip 53 KB
Intent intent = new Intent("android.media.action.IMAGE_CAPTURE");
--
Any chance you can post the jar file somewhere so those of us who are
not Java programmers can rebuild our phonegap app to make our Motorola
users happy?
--chip
On Dec 16, 10:19 am, Simon MacDonald <simon.macdon...@gmail.com>
wrote:
> Hey Andrea,
>
> That is awesome that you've found a fix for this issue. I've been able to
> try it out on my Samsung Galaxy phone and tablet and it doesn't cause any
> ill effects on those phones. I'm going to submit a pull request on PhoneGap
> and get some folks with other devices to test it out before it becomes part
> of an upcoming PhoneGap release.
>
> If you want to add it in yourself you just need to grab the source code
> from:
>
> https://github.com/callback/callback-android
>
> Then edit the file framework/src/com/phonegap/CameraLauncher.java and add:
>
> intent.setFlags(Intent.*FLAG_ACTIVITY_CLEAR_TOP*);
>
> after:
>
> Intent intent = *new* Intent("android.media.action.IMAGE_CAPTURE");
> which should be line 162. Then if you recompile the jar you should be all
> set to go.
>
> Simon Mac Donaldhttp://hi.im/simonmacdonald
>
>
>
>
>
>
>
> On Thu, Dec 15, 2011 at 1:26 PM, Dre <mslevi...@gmail.com> wrote:
> > Dear Simon McDonald,
>
> > I recreated the issue using a simple native Android app, without PhoneGap
> > and confirmed that the problem is because that onActivityResult fires
> > prematurely,
> > when it has nothing to return yet. There was no such issue with Samsung,
> > LG and
> > HTC models I also tested on, but I discovered an issue with Motorola.
>
> > I posted the fix on my blog post which includes the post I wrote to the
> > Motorola
> > developers:http://andrea.levinge.me/?p=132which also references the
> > PhoneGap googlegroups.
>
> > Dear Greg Wilson,
>
> > I am also experiencing the same issue. I am attaching a very simple
> > example (CameraTest) that causes my entire app to restart. The culprit is
> > the simple line "
> > startActivityForResult(cameraIntent, CAMERA_PIC_REQUEST);"
>
> > It doesn't pass the result back to the app. When it takes a photo, it is
> > supposed to save a simple thumbnail to an imageview. Instead, it forces the
> > app to restart completely.
>
> > Works on Samsung Galaxy S2 and LG Optimus, and every other phone we've
> > tried but not on a Motorola Droid 3 on Android 2.3.4.
>
> > There is an entire thread here that describes people having the exact same
> > issue, mostly with Motorola phones and some LG phones.
>
> > According to this thread
> >http://comments.gmane.org/gmane.comp.handhelds.pho**negap/16506<http://comments.gmane.org/gmane.comp.handhelds.phonegap/16506> replied
> > to by one of the PhoneGap developers, this issue is caused by the vendor.
> > Simon replies - "It sounds like you are suffering from the issue that the
> > default intent for taking picture/video does not call onActivityResult
> > properly...This is a vendor bloatware issue and I'm not sure what I can do
> > to fix it."
>
> > Kind regards,
>
> > Andrea
> > Attachments:
>
> >> [image: Attachment] CameraTest.zip 53 KB<http://community.developer.motorola.com/mtrl/attachments/mtrl/Android...>
Unfortunately, I just tried it on a Motorola Droid X, and it still
restarts the app when clicking "Done" after taking a photo.
--chip
On Dec 19, 11:26 am, Simon MacDonald <simon.macdon...@gmail.com>
wrote:
> Here are PhoneGap 1.3 jar/js built with the fix Andrea suggested. I've not
> made any testing of this combo so try it at your own risk.
>
> http://dl.dropbox.com/u/887989/top/phonegap-1.3.0.jarhttp://dl.dropbox.com/u/887989/top/phonegap-1.3.0.js
>
> > > > developers:http://andrea.levinge.me/?p=132whichalso references the
> > > > > phonegap+unsubscribe@googlegroups.com
> > > > > For more options, visit this group at
> > > > >http://groups.google.com/group/phonegap?hl=en?hl=en
>
> > > > > For more info on PhoneGap or to download the code go
> > > towww.phonegap.com
>
> > > --
> > > You received this message because you are subscribed to the Google
> > > Groups "phonegap" group.
> > > To post to this group, send email to phon...@googlegroups.com
> > > To unsubscribe from this group, send email to
> > > phonegap+unsubscribe@googlegroups.com
> > > > > > > phonegap+unsubscribe@googlegroups.com
> > > > > > > For more options, visit this group at
> > > > > > >http://groups.google.com/group/phonegap?hl=en?hl=en
>
> > > > > > > For more info on PhoneGap or to download the code go
> > > > > towww.phonegap.com
>
> > > > > --
> > > > > You received this message because you are subscribed to the Google
> > > > > Groups "phonegap" group.
> > > > > To post to this group, send email to phon...@googlegroups.com
> > > > > To unsubscribe from this group, send email to
> > > > > phonegap+unsubscribe@googlegroups.com
Russ,
Switch to a FILE_URI. Using a DATA_URL on phones with high mega pixel cameras will cause out of memory exceptions. There is nothing we can do if there is an OOM problem in the JVM.
Simon
I'm having very similar problems - with a modern device I can't get the camera to work. My camera-initialising code is a very standard http://pastebin.com/74wn5gZHWith Cordova 1.8 and 1.7 I'm getting a failure to return either a success or a fail from the camera (I check that by uncommenting the navigator.notification.alert() commands and getting neither of them) on a Galaxy Nexus on Android 4.04, but the same code runs successfully on a Nexus One running 2.3.6 just fine. The code also works fine on an iPhone 4S.Is there anything I could try or test that might help?
On Thursday, 14 June 2012 14:10:56 UTC+1, Simon wrote:No, that really doesn't make too much sense but nothing about this
problem has made sense.
Anyway, I'm looking hard at the camera code right now doing a bit of a
refactor on it.
Simon Mac Donald
http://hi.im/simonmacdonald
No, that really doesn't make too much sense but nothing about this
problem has made sense.
Anyway, I'm looking hard at the camera code right now doing a bit of a
refactor on it.
Simon Mac Donald
http://hi.im/simonmacdonald
Hi Simon, I've noticed that rotating the phone while in camera appears to be causing my app to restart.JS is pretty much the standard camera example except I've combined all the functions (take pic, get from library, etc) into one call that takes a parameter passed from the html onclick event:var pictureSource, destinationType; // picture source// Cordova is ready to be used!function onDeviceReady() {pictureSource = navigator.camera.PictureSourceType;destinationType = navigator.camera.DestinationType;alert ("fresh start");}//After taking picture or getting it from the libraryfunction onSuccess(imageURI) {//Stick it in the DOMvar image = document.getElementById('myImage');image.src = imageURI;alert("success");//then show the metadata fields and put the cursor in the first field$("#rightside").show();$("#caption").focus();}//Fail function for image retrievalfunction onFail(message) {alert('Failed because: ' + message);}//image retrieval functionfunction getPhoto(source) {// Retrieve image file location from specified sourcenavigator.camera.getPicture(onSuccess, onFail, {quality: 50,destinationType: navigator.camera.DestinationType.FILE_URI,sourceType: source,correctOrientation: true});}//Wait for Cordova to connect with the device+document.addEventListener("deviceready", onDeviceReady, false);I also have this entry in AndroidManifest (as an attribute of the activity, not the app) to prevent the app from restarting when the phone is rotated while the app itself is open:android:configChanges="orientation|keyboardHidden"Any suggestions?
>>>>>>> > > > > > > > phonegap+unsubscribe@googlegroups.com
>>>>>>> > > > > > > > For more options, visit this group at
>>>>>>> > > > > > > >http://groups.google.com/group/phonegap?hl=en?hl=en
>>>>>>> >
>>>>>>> > > > > > > > For more info on PhoneGap or to download the code go
>>>>>>> > > > > > towww.phonegap.com
>>>>>>> >
>>>>>>> > > > > > --
>>>>>>> > > > > > You received this message because you are subscribed to the
>>>>>>> > > > > > Groups "phonegap" group.
>>>>>>> > > > > > To post to this group, send email to
>>>>>>> > > > > > phon...@googlegroups.com
>>>>>>> > > > > > To unsubscribe from this group, send email to
>>>>>>> > > > > > phonegap+unsubscribe@googlegroups.com
>>>>>>> > > > > > For more options, visit this group at
>>>>>>> > > > > >http://groups.google.com/group/phonegap?hl=en?hl=en
>>>>>>> >
>>>>>>> > > > > > For more info on PhoneGap or to download the code go
>>>>>>> > > towww.phonegap.com
>>>>>
>>>>> --
>>>>> You received this message because you are subscribed to the Google
>>>>> Groups "phonegap" group.
>>>>> To post to this group, send email to phon...@googlegroups.com
>>>>> To unsubscribe from this group, send email to
>>>>> For more options, visit this group at
>>>>> http://groups.google.com/group/phonegap?hl=en?hl=en
>>>>>
>>>>> For more info on PhoneGap or to download the code go to
>>>>> www.phonegap.com
>>>>
>>>>
>>> --
>>> You received this message because you are subscribed to the Google
>>> Groups "phonegap" group.
>>> To post to this group, send email to phon...@googlegroups.com
>>> To unsubscribe from this group, send email to
>>> For more options, visit this group at
>>> http://groups.google.com/group/phonegap?hl=en?hl=en
>>>
>>> For more info on PhoneGap or to download the code go to www.phonegap.com
>>
>>
> --
> You received this message because you are subscribed to the Google
> Groups "phonegap" group.
> To post to this group, send email to phon...@googlegroups.com
> To unsubscribe from this group, send email to
--
You received this message because you are subscribed to the Google
Groups "phonegap" group.
To post to this group, send email to phon...@googlegroups.com
To unsubscribe from this group, send email to
For more options, visit this group at
http://groups.google.com/group/phonegap?hl=en?hl=en
For more info on PhoneGap or to download the code go to www.phonegap.com
I think PhoneGap is great, but I have been experiencing this same issue since 0.9.2. I'm now using 2.0.0 and still experiencing the random crashing due to Android's GC, after taking a picture or selecting one from the gallery. Is there any hope that a version in the near future will permanently solve this problem?
Thanks
John
On Tuesday, September 4, 2012 5:25:19 PM UTC-4, Arthur André Silva salviano wrote:--I'm having the same problems as the others. Sometimes it takes the picture usually resumes in the other app.
I've started using version 2.0.0 Cordova but I see that this problem lasts a long time since the early versions.
Any news on the problem?
Em sexta-feira, 3 de dezembro de 2010 18h10min24s UTC-2, tvo escreveu:Has anyone ever had any problems with the phonegap camera code on
Android? I find that the code doesn't always return from the camera
screen properly.
When my app is first started everything works fine but after a while
when returning from the camera screen none of the callbacks I set in
navigator.camera.getPicture() are called.
I then have to force quit the application and start it again for it to
work again. This issue occurs no matter if I user DATA_URL or FILE_URI
as destination. I am using Phonegap 0.9.2.
The issue doesn't seem to occur on the Android emulator but I've been
to reproduce it on all real phones that I have access to (HTC desire
w/ 2.2 and Samsung Galaxy Tab w/ 2.2).
I've seen many reports of this problem but I haven't seen any solution
or explanation of what is going on.
Can someone confirm that they are experiencing the same issue?
Thanks.
-- You received this message because you are subscribed to the Google
Groups "phonegap" group.
To post to this group, send email to phon...@googlegroups.com
To unsubscribe from this group, send email to
phonegap+u...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/phonegap?hl=en?hl=en
For more info on PhoneGap or to download the code go to www.phonegap.com
To compile in the cloud, check out build.phonegap.com
Got some weird advice that actually works, though it's not a good solution for deploying in the wild.
Try Uninstalling other third-party camera apps and see if the problem goes away. For me, it was vsco cam and camera plus.
Again, not a great solution, but if you're concern about being able to demo a prototype reliably, it can be a lifesaver.
Marc
--
-- You received this message because you are subscribed to the Google
Groups "phonegap" group.
To post to this group, send email to phon...@googlegroups.com
To unsubscribe from this group, send email to
phonegap+u...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/phonegap?hl=en?hl=en
For more info on PhoneGap or to download the code go to www.phonegap.com
---
You received this message because you are subscribed to a topic in the Google Groups "phonegap" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/phonegap/GFwv2OticKw/unsubscribe.
To unsubscribe from this group and all its topics, send an email to phonegap+u...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.