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.
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.
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.