Packages and Processes

As you have witnessed in previous chapters, when you develop an application in Android, you end up with an .apk file. You then sign this .apk file and deploy it to the device. Let’s learn a little bit more about Android packages.

Details of a Package Specification

Each .apk file is uniquely identified by its root package name, which is specified in its manifest file. Here is an example of a package definition that we will be using for this chapter (the package name is highlighted):

<manifest xmlns:android="http://schemas.android.com/apk/res/android"       package="com.androidbook.library.testlibraryapp"       ...>       ...rest of the xml nodes </manifest>

If you were the developer of this package and signed it and installed ...

Get Pro Android 4 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.