Android Question directory on Android 11

a_carignan

Member
Licensed User
Longtime User
Hello, I would like to know how to select a directory on the sdcard, so as to know the directory and be able to use this information each time the application is opened. I specify that it is for Android 11. It is for an application created for an earlier version of Android and which used FileDialog to select the directory in question. Please help me.
 

agraham

Expert
Licensed User
Longtime User
The example of the link, are either defective, or not unrelated to what I want my software to do.
I know of nothing defective in the link examples - please specify which? Targeting Android 11 severely limits your capability to access the file system. This by design. You cannot assume that you can do the same things as with earlier versions of Android and still have your app in the Play Store. If they are for your own use then just keep targeting SDK 28 and all is good otherwise you will need to adapt your app.
 
Upvote 0

a_carignan

Member
Licensed User
Longtime User
The examples given by the link is an example of file selection, which I would need effectively in my software. For that I thank you. But what I'm looking for is how to select a directory. This is where the examples don't help me much.
 
Upvote 0

a_carignan

Member
Licensed User
Longtime User
Okay, ok, External storage is the only way to access a directory. It doesn't really suit me, but I'll have to live with it. Thanks for your help.
 
Upvote 0
Cookies are required to use this site. You must accept them to continue using the site. Learn more…