Android 5.1 is released! Android 5.1 as API level 22 (LOLLIPOP_MR1) is an update to the Lollipop release that offers new features for users and app developers. Lets take a look at whats new added or deprecated in API level 22. What’s new for developers?
LOLLIPOP_MR1 is Lollipop with an extra sugar coating on the outside!
This API has good classes and methods are added as well deprecated well known classes and methods. Lets know them to stay tuned.
New in API level 22
The lookup key for a Network object included with the intent after successfully finding a network for the applications request.
- ConnectivityManager – void releaseNetworkRequest (PendingIntent operation)
This method has the same behavior as unregisterNetworkCallback(ConnectivityManager.NetworkCallback) with respect to releasing network resources and disconnecting.
- ConnectivityManager – void requestNetwork (NetworkRequest request, PendingIntent operation)
Request a network to satisfy a set of NetworkCapabilities. This function behaves identically to the version that takes a NetworkCallback
A Parcelable class for Subscription Information.
Intermediate density for screens that sit between DENSITY_HIGH (240dpi) and DENSITY_XHIGH (320dpi).
- Activity- public Uri getReferrer()
Return information about who launched this activity. If the launching Intent contains an Intent.EXTRA_REFERRE.
Deprecated in API level 22
An entity that can be sent or received with an HTTP message.
An HTTP connection over the Internet Protocol (IP).
HTTP clients encapsulate a smorgasbord of objects required to execute HTTP requests while handling cookies, authentication, connection management, and other features.
Default implementation of an HTTP client.
Implementation of the Apache DefaultHttpClient that is configured with reasonable default settings and registered schemes for Android.
HTTP “magic-cookie” represents a piece of state information that the HTTP agent and the target server can exchange to maintain a session.
Describes a proxy configuration. Proxy configurations are already integrated within the Apache HTTP stack.
A resizable byte array.
- public Drawable getDrawable (int id)
Return a drawable object associated with a particular resource ID.
- public Drawable getDrawableForDensity (int id, int density)
Return a drawable object associated with a particular resource ID for the given screen density in DPI.
A collection of utilities relating to InetAddresses.