Page 1 of 1
MobilePickPhoto issue on 4.4.2
Posted: Fri Dec 05, 2014 3:01 am
by immonen
I looked around in the forum and I saw that there was sometimes an issue with mobilePickPhoto on 4.3 and since I am guessing it is still present in 4.4.2, has anyone tried it on other versions of android?
Here is the code so far:
Code: Select all
on mouseUp
set the width of the templateImage to 600
set the height of the templateImage to 400
mobilePickPhoto "camera"
# the X, Y dimensions for an image are not supported on Android and are ignored
//mobilePickPhoto "camera", 200, 400
if the result is text then
put the result into field "The_Result"
else
put the result into image "The_AED_Image"
end if
end mouseUp
and I have tried to put :
before end mouseUp and didn't have any luck part of picture is in image area and rest is black.
I also tried waiting 20 minutes maybe for timeout with no luck. Could anyone point me in correct direction?
It also messes up for
as well
Thanks
-William
Re: MobilePickPhoto issue on 4.4.2
Posted: Tue Dec 09, 2014 6:44 am
by josepxavier
find the solution?
I have the same problem
Re: MobilePickPhoto issue on 4.4.2
Posted: Tue Dec 09, 2014 11:06 am
by LCNeil
Hi all,
What you are experiencing sounds like a bug. I had a quick look in our Quality Control Database but couldn't find any relevant reports. As this is the case, could you please file a report on this issue and our QC team will happily investigate it further.
http://quality.runrev.com
Kind Regards,
Neil Roger
--
LiveCode Support Team ~
http://www.livecode.com
--
Re: MobilePickPhoto issue on 4.4.2
Posted: Wed Dec 10, 2014 7:05 am
by strongbow
Check Bug 11118 - mobilePickPhoto "camera" is unstable (android).
Re: MobilePickPhoto issue on 4.4.2
Posted: Wed Dec 10, 2014 1:51 pm
by immonen
For all interested in fix, the LiveCode team was prompt to fix this form me! (thanks Hanson!)
For my take picture it should be:
Code: Select all
on mouseUp
set the lockloc of the templateimage to true
set the width of the templateimage to the width of image "The_AED_Image"
set the height of the templateimage to the height of image "The_AED_Image"
set the left of the templateimage to the left of image "The_AED_Image"
set the top of the templateimage to the top of image "The_AED_Image"
mobilePickPhoto "camera"
if the result is text then
put the result into field "The_Result"
end if
end mouseUp
go to card "media input"
and for the select picture from galary
Code: Select all
on mouseUp
//answer file "Select file: " with type ".jpeg, .tiff, .png, .bmp, .gif "
set the lockloc of the templateimage to true
set the width of the templateimage to the width of image "The_AED_Image"
set the height of the templateimage to the height of image "The_AED_Image"
set the left of the templateimage to the left of image "The_AED_Image"
set the top of the templateimage to the top of image "The_AED_Image"
mobilePickPhoto "library"
if the result is empty then
put the last image into URL("binfile:"&specialFolderPath("documents")&"/pic.jpg")
end if
end mouseUp
I hope this helps others as it did for me!
-William
Re: MobilePickPhoto issue on 4.4.2
Posted: Thu Dec 11, 2014 6:50 pm
by pkocsis
question immonen:
I'm not 100% sure I understand what your original problem was. strongbow mentioned bug 11118. That bug is in reference to mobilePickPhoto "camera" periodically crashing, and thus, any statements after mobilePickPhoto "camera" are never reached due to the app crashing.
Is that what was occurring to you? ......or are you saying that you were getting a partial image back from the mobilePickPhoto statement? I ask because I've been searching for an answer for years on the intermittent app crash that can occur right at the mobilePickPhoto "camera" statement.
Thanks!