facebook

How can App user select image from gallery

  1. MobiOne Archive
  2.  > 
  3. Getting Help – General
Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #351939 Reply

    In my app I have record keeping tools for horses. Simple fill and save text boxes.
    I would like my users to be able to also select/upload their own images to save in the app next to their horses name.
    Would anyone have any working examples of how I can achieve this?
    Thank you in advance
    ultimately this image will also be populated on other screens.

    Attachments:
    You must be logged in to view attached files.
    #351944 Reply

    Hi living.horses,

    Check out the PhoneGap/Cordova APIU fourth camera:
    http://docs.phonegap.com/en/2.9.0/cordova_camera_camera.md.html#camera.getPicture

    The examples include both how to get images from the camera and from the users camera roll.

    #351953 Reply

    Tank you. I did have a look at this previously, but just ended up confusing myself I think, with what code to ad to button, and what to put into the custom.js file, and so forth.
    I tried so many different options, that I just mumbled it all, and gave up after umpteenth sends to my phone to test out.
    But I will try again, just thought someone might have already done a simple version 🙂
    Again though , thank you 🙂

    #351968 Reply

    Here is a sample of using the camera. You can add the sourceType : Camera.PictureSource.SAVEDPHOTOALBUM, to use the library as per the API docs.

    Attachments:
    You must be logged in to view attached files.
    #352101 Reply

    thank you Brandon. I will give it a go 🙂

Viewing 5 posts - 1 through 5 (of 5 total)
Reply To: How can App user select image from gallery

You must be logged in to post in the forum log in