O'Reilly logo

Introduction to Android™ Application Development: Android Essentials, Fourth Edition by Joseph Annuzzi Jr., Lauren Darcey, Shane Conder

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

12. Working with Files and Directories

Android applications can store raw files on the device using a variety of methods. The Android SDK includes a number of helpful APIs for working with private application and cache files as well as accessing external files on removable storage such as SD cards. Developers who need to store information safely and persistently will find the available file management APIs familiar and easy to use.

Working with Application Data on the Device

As discussed in the previous chapter, shared preferences provide a simple mechanism for storing simple application data persistently. However, many applications require a more robust solution that allows for any type of data to be stored and accessed in a persistent fashion. ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required