For the More Curious: The Android Filesystem and Java I/O

At the OS level, Android runs inside a Linux kernel. As a result, its filesystem is similar to other Linux and Unix systems. Directory names are separated by forward slashes (/), files can have a broad set of characters in their names, and everything is case-sensitive. Your application runs with a specific user ID, taking advantage of the Linux security model.

Android uses an application’s Java package name to determine where it lives on the filesystem. Applications themselves are bundled in an APK file for distribution and installation, which lives in the /data/app directory with a name like com.bignerdranch.android.criminalintent-1.apk. Usually, you will not need to know anything about ...

Get Android Programming: The Big Nerd Ranch Guide 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.