B. Using the Compatibility Pack

The compatibility pack, or support library, is a set of classes that have been provided to add support to legacy versions of Android (the minimum API level supported is 4).

Android Support Packages

The support library adds the following packages:

Image android.support.v4.accessibilityservice

Image android.support.v4.app

Image android.support.v4.content



android.support.v4.net ...

Get The Android™ Developer’s Cookbook: Building Applications with the Android SDK, Second Edition now with O’Reilly online learning.

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