How To Check Directory Is Exists Or Not In Android Q?
I have stored file using MediaStore for AndroidQ in Default External PICTURE directory now, i just want to check that directory is exists or not. I have tried as below but it retur
Solution 1:
You have hit the Scoped Storage Change in Android Q
https://developer.android.com/training/data-storage/files/external-scoped
You will need to use MediaStore to access the files
See Searching for music files with mediastore for an example of searching for a file
Solution 2:
There was huge privacy change in android Q by introducing Scoped Storage.
<manifest... ><!-- This attribute is "false" by default on apps targeting Android
Q. --><applicationandroid:requestLegacyExternalStorage="true"... >
...
</application></manifest>
Post a Comment for "How To Check Directory Is Exists Or Not In Android Q?"