Issue
I use an Image picker in my android app but cannot open a specific folder. Whenever I open the selector using the intent, it opens the recently opened folder. I also followed href="https://stackoverflow.com/questions/54085325/when-i-try-to-open-a-specific-folder-only-open-a-recent-folder">this post, but it does not work for me. This is what I tried:
Intent intent = new Intent(Intent.ACTION_GET_CONTENT);
intent.setType("image/*");
startActivity(intent);
Solution
After a lot of research, I discovered this wasn't possible. So, instead, I had to get all the files in a directory and display them in a recycler view.
Answered By - Sambhav Khandelwal
Answer Checked By - Marilyn (JavaFixing Volunteer)