Discussions about creating CAPI applications to run on Android devices
2 posts • Page 1 of 1
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?
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).