Sorry folks, im stuck again not sure if I should retire from Xamarin
Does anyone know of any basic examples or sample code for displaying images from the devices gallery, e.g I want to just rotate through all the images in the camera folder (ie android or ios) changing the image every minute or so, this seems to be incredibly complex, anything I seem to come across seems to no longer work or needs additional nugets that arent found or other things.
Just display background wallpaper from images on the device (not embedded into the app, not online) change the image on a timer, so I think I needed to first get a list of all the images on the device their filenames and paths then go through them, I come across examples of online files or files in the apps resources but not how to find them on android or ios
Really hope someone can help
Answers
For this function, please use the function code on each platform to implement it. For example, to access files on Android, do the following:
Check the tutorials:
https://docs.microsoft.com/en-us/xamarin/android/platform/files/external-storage?tabs=windows
https://docs.microsoft.com/en-us/xamarin/ios/app-fundamentals/file-system
Xamarin forums are migrating to a new home on Microsoft Q&A!
We invite you to post new questions in the Xamarin forums’ new home on Microsoft Q&A!
For more information, please refer to this sticky post.