Android 5.1 is released ! What’s new for developers??

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

  1. ConnectivityManager.EXTRA_NETWORK 
    The lookup key for a Network object included with the intent after successfully finding a network for the applications request.
  2. ConnectivityManager –  void releaseNetworkRequest (PendingIntent operation)
    This method has the same behavior as unregisterNetworkCallback(ConnectivityManager.NetworkCallback) with respect to releasing network resources and disconnecting.
  3. 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
  4. SubscriptionInfo
    A Parcelable class for Subscription Information.
  5. DisplayMetrics.DENSITY_280
    Intermediate density for screens that sit between DENSITY_HIGH (240dpi) and DENSITY_XHIGH (320dpi).
  6. 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

  1. HttpEntity
    An entity that can be sent or received with an HTTP message.
  2. HttpInetConnection
    An HTTP connection over the Internet Protocol (IP).
  3. HttpClient
    HTTP clients encapsulate a smorgasbord of objects required to execute HTTP requests while handling cookies, authentication, connection management, and other features.
  4. DefaultHttpClient
    Default implementation of an HTTP client.
  5. AndroidHttpClient
    Implementation of the Apache DefaultHttpClient that is configured with reasonable default settings and registered schemes for Android.
  6. Cookie
    HTTP “magic-cookie” represents a piece of state information that the HTTP agent and the target server can exchange to maintain a session.
  7. ProxyInfo
    Describes a proxy configuration. Proxy configurations are already integrated within the Apache HTTP stack.
  8. ByteArrayBuffer
    A resizable byte array.
  9. public Drawable getDrawable (int id)
    Return a drawable object associated with a particular resource ID.
  10.  public Drawable getDrawableForDensity (int id, int density)
    Return a drawable object associated with a particular resource ID for the given screen density in DPI.
  11. InetAddressUtils
    A collection of utilities relating to InetAddresses.


Share on Facebook0Share on Google+0Tweet about this on TwitterShare on LinkedIn0Share on Reddit0Pin on Pinterest0Share on Tumblr0Email this to someone
  • 不足

    Hey there just wanted to give you a quick heads up. The
    words in your post seem to be running off the screen in Safari.
    I’m not sure if this is a formatting issue or something to do
    with web browser compatibility but I thought I’d post to let you know.
    The style and design look great though! Hope you get the problem resolved soon. Thanks

    • Chintan Rathod

      Thank you very much for addressing issue. 🙂

  • とこらへん

    Yes! Finally something about золота.