Camera Test - working with LiveCode 5.5

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

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
BarrySumpter
Posts: 1201
Joined: Sun Apr 24, 2011 2:17 am

Camera Test - working with LiveCode 5.5

Post by BarrySumpter » Tue Apr 03, 2012 12:19 am

I don't know why its so hard to get the right settings with the Android Camera on my HD2.
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

Attachments
Camera Test 3 Works.zip
(69.4 KiB) Downloaded 263 times
All my best,
Barry G. Sumpter

Deving on WinXP sp3-32 bit. LC 5.5 Professional Build 1477
Android/iOS/Server Add Ons. OmegaBundle 2011 value ROCKS!
2 HTC HD2 Latest DorimanX Roms
Might have to reconsider LiveCode iOS Developer Program.

Post Reply