Posts

Showing posts from May, 2021

Android 11 Scoped Storage | MediaStore API | Storage Access Framework

Image
 Scoped Storage in Android 11 Recently my app got removed from the play store because I was targetting Android 11 with All-access storage permission, so here I am explaining to you how to access files without all-access permission in android 11. What is Scoped Storage? Scoped Storage allows you to access only the accessible Storage area of the whole storage which is permissible by the user. By default, whole internal storage is not accessible except for the app package folder eg: android/data/com.android.app  and this package folder is accessible but not visible to the user in android 11. MediaStore API MediaStore API allows you to access Image, Videos, Files you can use it to get all Media present in the device to try it out I am adding  the Github link below  https://github.com/ifahimkhan/AndroidStorage For the explanation of the same, you can watch this youtube video. https://www.youtube.com/watch?v=EeLz1DPMsW8 For MediaStore Files, you can refer to this Stackoverflow link where you