I have an App on Google Play where the user can update the pricing information by downloading a csv file and then importing it into the App (from the Download folder). All has been well until Google Play has forced me to target SDK 30.
I have changed from using a simple FileDialog to code based on the ExternalStorage class. This works well until I try it on Android 11 where, although I can see the file(s) in Download, there is a message "Can't use this Folder. To protect your privacy, choose another folder."
The odd thing is that if I put the file in the "Pictures" folder I can import it from there.
Am I being too optimistic trying to use the ExternalStorage class when I need to use something else?
I have changed from using a simple FileDialog to code based on the ExternalStorage class. This works well until I try it on Android 11 where, although I can see the file(s) in Download, there is a message "Can't use this Folder. To protect your privacy, choose another folder."
The odd thing is that if I put the file in the "Pictures" folder I can import it from there.
Am I being too optimistic trying to use the ExternalStorage class when I need to use something else?