O'Reilly logo

Android Application Development: A Beginner’s Tutorial by Budi Kurniawan

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

Chapter 17

Working with Files

Reading from and writing to a file are some of the most common operations in any type of application, including Android. In this chapter, you will learn how Android structures its storage areas and how to use the Android File API.

Overview

Android devices offer two storage areas, internal and external. The internal storage is private to the application. The user and other applications cannot access it.

The external storage is where you store files that will be shared with other applications or that the user will be able to access. For example, the built-in Camera application stores digital image files in the external storage so the user can easily copy them to a computer.

Internal Storage

All applications can read ...

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