O'Reilly logo

LiveCode Mobile Development Beginner's Guide by Colin Holgate

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Time for action – loading pictures

LiveCode can call upon the native photo library and camera apps. We will test both of these on Android and iOS, but of course only if your device has some saved images, and a camera. For the Kindle Fire, which doesn't have a camera, make sure to save some pictures into the Gallery app, so that we can at least try loading those.

  1. Copy the Test button from the DatePicker card, and paste it twice onto the Pictures card. Change the name of the buttons to Test Camera and Test Library.
  2. Edit the script of the Test Camera button to the following:
    on mouseUp
       mobilePickPhoto "camera"
    end mouseup
  3. Edit the script of the Test Library button to the following:
    on mouseUp
       mobilePickPhoto "library"
    end mouseup
  4. As we test the loading ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required