Good day, I have to do an assignment for university using kotlin and android studio. This is my first time using kotlin and we are expected to learn it in our own time while completing the project. The project is where you click a button that says “grape” and the image of a grape comes up. I have completed the project (gotten the images to appear when the respective button is pressed and access the images from resources of the IDE). However, we need to access the images from the sdcard(which I have loaded the images to) of the emulator, but I am unsure of how to access these photos and make them match with their respective buttons once they have been loaded onto the emulators gallery. Additionally, we were given this instruction,
Images should be accessed using an Image 1 Factory that will allow later developers to easily recode where images might be stored and how they are rendered< However, there’s is not much information on the internet on what factory images are and how to use them. If anyone could explain and possibly provide links to tutorials on how factory images work that would be great.