I'm building an Android app that needs to be able to go thru file explorer and pick a file. as of now, have a button (that doesn't do anything yet) from app > res > menu > main.xml but I need pressing it to take my to the file explorer, from which a user can chose a file that ultimately will be uploaded.
How and where should I code this, both in xml and java? I've looked online, but most Google search results with "file explorer" and "android studio" in the query return posts about people using file explorer on their emulator more than integrating it's use into the app.
perhaps I should've added that I want a menu button to do it, and with the latest dev tools.
edit: here's my logcat file (tho I moved the functionality to a new button instead of a menu drop down and edited out my name and project name).