-
Notifications
You must be signed in to change notification settings - Fork 0
How scoped storage is a solution to external storage drawbacks
Devrath edited this page Jun 7, 2021
·
2 revisions
- Scoped storage was a solution to the problem.
- Scoped storage is optional in
android-10
but has become compulsory inandroid-11
. - Because of scoped storage, System knows which application has created which file and has a track of each file, Thus when an application is uninstalled all the files that it created are also un-installed.
- Every application has access to its
directory
inexternal storage
anddoes not need a permission
.
- We can perform this action using
createWriteRequest
,createDeleteRequest
and modify the files in the directory created by other applications inexternal storage
- But the catch here is, it requires the approval of the user.