Third-party libraries

In addition to the built-in support of the Android framework, we do have quite a few third-party libraries available to handle network operations. Out of those, Picasso from Square and Glide from bumptech are widely used image downloading and caching libraries. 

In this section, we will focus on the implementation of these two libraries—Picasso and Glide—to load an image from a specific URL and display it in our sample application. 

Networking calls should never be done on the main thread. Doing so will result in the app becoming less responsive and create Application Not Responding conditions. Instead, we should create separate worker threads which handle such network calls and provide information as and when the request is attended to.
..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset