Android 5.1 APIs
Android 5.1 APIs API Level: 22 Android 5.1 ( LOLLIPOP_MR1 ) is an update to the Lollipop release that offers new features for users and app developers. This document provides an introduction to the most notable new APIs. For a high-level look at the new platform features, see the Android Lollipop highlights . Update your target API level To start building apps for Android 5.1, use the SDK Manager to download the Android 5.1 SDK Platform and System Images. Then set your app development project to use a targetSdkVersion of "22" . Install your app on an Android 5.1 system image, test it, then publish the updated app with this change. You can use Android 5.1 APIs while also supporting older versions by adding conditions to your code that check for the system API level before executing APIs not supported by your minSdkVersion . To learn more about maintaining backward compatibility, read Supporting Different Platform Versions . ...