Free Trial

Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.

  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint
Share this Page URL
Help

Chapter 7: Working with the File System ... > Working with the File System

Working with the File System

As previously indicated, this chapter covers the file system and file I/O. It starts with a discussion of the file system type and structure and then moves to look at how you work with permissions and file access. Next it covers the file access API and wraps up with a sample program that reads and writes to and from a local XML file.

File System Type and Structure

The default file system for Android is YAFFS (Yet Another Flash File System). YAFFS is currently at version 2. It runs on top of the Linux operating system in Android and is also available for other OSs. YAFFS provides wear leveling to prolong the life of the Flash memory. It has built-in error correction for robustness in case of a power failure. It also provides fast boot-up, making it a solid file system for the Android platform.


  

You are currently reading a PREVIEW of this book.

                                                                                                                    

Get instant access to over $1 million worth of books and videos.

  

Start a Free Trial


  
  • Safari Books Online
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint