March 2016
Intermediate to advanced
428 pages
9h 2m
English
The process of reading and writing files to external storage is basically the same as using internal storage. The difference is in obtaining a reference to the storage location. Also, as mentioned in the Introduction, external storage may not be available, so it's best to check availability before attempting to access it.
This recipe will read and write a text file, as we did in the previous recipe. We'll also demonstrate how to check the external storage state before we access it.
Create a new project in Android Studio and call it: ExternalStorageFile. Use the default Phone & Tablet options and select Empty Activity when prompted for the Activity Type. We will use the same layout as the ...
Read now
Unlock full access