Page 1 of 1

Choose photo from disk on Android

Posted: January 5th, 2018, 12:11 am
by ashishacharya
I have been able to create a function to take a photo and save it using a custom filename on Android. However, I would like to offer the user an option to select a photo from their disk instead of taking it. On Windows, I've written a batch file to do this. How do I achieve this on Android?

Re: Choose photo from disk on Android

Posted: January 5th, 2018, 11:09 am
by josh
There is not an easy way to do this. If you know the directory that the photos are in you can use dirlist to list all the files in that directory and then use setvalueset to create a dynamic value set with the names/images from the photos. You can add a third array to the call to setvalueset that contains the full paths to the photo files: setvalueset(MYFIELD, codes, labels, imagePaths).