Library Projects

As we talk through sharing code and resources, one question worth asking is, will the idea of a “library” project help? To investigate this, we first need to understand what library projects are, how to create them, and how these projects are used.

What Is a Library Project?

Starting with the ADT 0.9.7 Eclipse plug-in, Android supports the idea of library projects. Since the last edition of the book, the approach to building libraries has changed a bit. In this edition, we are going to cover the latest for Android libraries as of SDK Tools 15.0 and Android SDK 4.0. We will draw attention to older approaches where applicable.

NOTE: At the time of this writing, the ADT is at release 15.0. Don’t be too alarmed by the increase in ...

Get Pro Android 4 now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.