Uninstall Behavior
: Files saved to the internal storage are removed when the app
is uninstalled. Files saved to the external storage are not removed, even when the
app is uninstalled. The exception to this rule is if the files are saved in the
directory obtained by
getExternalFilesDir
.
If you’re unsure which method to use, here’s a hint: Use internal storage when you
don’t want the user or any other apps to access the files, like important user
documents and preferences. Use external storage when you want to allow users or
other apps access to the files. This might include images you capture within the app.
GeTng started
To get started, you’ll build an app that uses internal storage. Inside this chapter’s
folder resources, locate
Do'stlaringiz bilan baham: |