Context.getExternalFilesDirs()
,
Context.getExternalCacheDirs()
, and
Context.getObbDirs()
.External storage devices surfaced through these APIs must be a semi-permanent part of the device (such as an SD card slot in a battery compartment). Developers expect data stored in these locations to be available over long periods of time. For this reason, transient storage devices (such as USB mass storage drives) should not be surfaced through these APIs.
The
WRITE_EXTERNAL_STORAGE
permission must only grant write
access to the primary external storage on a device. Apps must not be
allowed to write to secondary external storage devices, except in their
package-specific directories as allowed by synthesized
permissions. Restricting writes in this way ensures the system can clean
up files when applications are uninstalled. Read more...
0 comments:
Post a Comment