MobilePickPhoto issue on 4.4.2

The place to discuss anything and everything about running your LiveCode on Android

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
immonen
Posts: 5
Joined: Mon Dec 01, 2014 11:29 pm

MobilePickPhoto issue on 4.4.2

Post by immonen » Fri Dec 05, 2014 3:01 am

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 :

Code: Select all

go to card "media input"
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

Code: Select all

mobilePickPhoto "library"
as well

Thanks

-William

josepxavier
Posts: 6
Joined: Wed Oct 08, 2014 6:12 pm

Re: MobilePickPhoto issue on 4.4.2

Post by josepxavier » Tue Dec 09, 2014 6:44 am

find the solution?
I have the same problem

LCNeil
Livecode Staff Member
Livecode Staff Member
Posts: 1223
Joined: Wed Oct 03, 2012 4:07 pm

Re: MobilePickPhoto issue on 4.4.2

Post by LCNeil » Tue Dec 09, 2014 11:06 am

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
--

strongbow
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 135
Joined: Mon Jul 31, 2006 1:39 am
Location: New Zealand, Australia, Germany, Japan
Contact:

Re: MobilePickPhoto issue on 4.4.2

Post by strongbow » Wed Dec 10, 2014 7:05 am

Check Bug 11118 - mobilePickPhoto "camera" is unstable (android).

immonen
Posts: 5
Joined: Mon Dec 01, 2014 11:29 pm

Re: MobilePickPhoto issue on 4.4.2

Post by immonen » Wed Dec 10, 2014 1:51 pm

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

pkocsis
Posts: 105
Joined: Sat Apr 15, 2006 7:20 am

Re: MobilePickPhoto issue on 4.4.2

Post by pkocsis » Thu Dec 11, 2014 6:50 pm

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!

Post Reply

Return to “Android Deployment”