A Coding Conundrum

I don’t know if this is the board for this, but maybe someone can help a coding layman out here.

I’m working on an Android app for a website I run. Everything works flawlessly so far, since its a very simple app. However, I need to implement the ability to access device storage so the user can upload media from their phones to the site. I know that would require having the app request permission to access the internal storage/SD card.

What’s the simplest way to go about it? I have the app open in the latest version of Android Studio right now.
I suggest reading and familiarizing yourself with the contents in this guide: https://developer.android.com/training/data-storage/shared/media
I will start there - thank you! Like I said, I am a total layman when it comes to big boy coding (something that initially attracted me to RM2k as a child lol). Sometimes it's easier to ask a pool of knowledgeable people, rather than wade through a bunch of only semi-related search results on Google.
There is so much information out there that even finding the right documentation can be difficult.
Your minimum SDK version can be really important as well.

After you have familiarized yourself with the guide I linked, read the section under File Storage here: https://developer.android.com/guide/components/intents-common#Storage
Experiment with the code given there. See if it helps you access image files.

As for permissions. Start by not having any storage permissions. Only add any if they are needed.
Should any permissions be needed, consider whether you want to request them upfront or only ask for permissions if the user wants to upload media. Here you should weigh how important/core the feature to upload media is against the importance of requesting as few permissions as possible.

Good luck~

Original thread: https://forums.rpgmakerweb.com/threads/a-coding-conundrum.125371/