Lecture 7: Storage Intro Flashcards
What does internal storage refer to?
Non-removable fixed memory within the device
What does external storage refer to?
Removable memory like a MicroSD
What type of storage does android prefer to install?
Internal storage
Where can apps specify if theyd like to be installed on external storage?
app manifest
Using internal and external storages impact the way __ is handled
file access
What storage type is used for code and cached data?
internal storage
What storage type is used for media, large files and data that needs to be shared?
external storage
What is App-Specific storage?
Storage for data specific to your app that doesn’t need to be shared with other apps
What permissions do app-specific storage requires?
none
Files can be listed from internal storage using?
Array<String> files = context.fileList();</String>
A specific file object can be retrieved from the array?
File file = new File(context.getFilesDir(), filename);
What is an alternative way to work with app-specific storage if you dont want to work with the file API provided by android?
streams
Explain the special form of app specific storage known as the ‘cache’
A place for your app to temporaily store data while in use.
What is the downside to using cache as temporary storage?
It might disappear at any time
Explain the 2 ways a cache can be cleared
- Android automatically empties the cache
- User manually clears the cache