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.content.pm

android.support.v4.database

android.support.v4.net ...

Get The Android™ Developer’s Cookbook: Building Applications with the Android SDK, Second Edition 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.