13. 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. ...

Get Android Wireless Application Development Volume I: Android Essentials, Third Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.