This is the only 1 out of 12 versions that I got to work before loosing interest.
I'll return later to play with the TemplateImage.
The red background is to test the color bug that turned red to blue on android we had in previous versions.
Executing the app on Android,
click the Camera button in the top left corner.
My HD2 gives me a popup to choose which camera app.
I chose the android camera app.
After I click the shutter to take a pic,
I click the OK button on the android camera app
android and or LiveCode
takes about 5 to 10 seconds with a blank screen,
then displays my pic in my image field.
MobilePickPhoto used the LiveCode built in TemplateImage.
It's an Image with all the properties of a normal image.
You can set the TemplateImage properties before executing the MobilePickPhoto command.
how-do-i-get-an-image-from-my-mobile-photo-library
http://lessons.runrev.com/s/lessons/m/4 ... to-library
Code: Select all
on mouseUp
mobilePickPhoto "camera", 438, 282 -- the x,y should be the size of the image control
-- THE RESULT from mobilePickPhoto if NOT successful will contain an error
-- THE RESULT from mobilePickPhoto if SUCCESSFUL will be EMPTY
-- Check THE RESULT for an error
if THE RESULT is NOT EMPTY then -- THEN an Error has been Returned
-- Not successful
put "Error:" && THE RESULT into field "lblThe_Result"
exit mouseup
end if
put "All OK" into field "lblThe_Result"
put LAST IMAGE into image The_Image -- distorted
delete LAST IMAGE
end mouseUp