10. Networking

Networking in Android has been an area that has steadily improved with each release of Android. Whereas network connections were once created and executed no matter what, through the use of the Volley library, they can now be queued to send, process, and even be canceled. In this chapter, you will learn about connecting to the Internet through an HTTP client, how to work with XML, and why using AsyncTask for network communication is necessary for your application, and how you can start using Volley.

Accessing the Internet

Unless your application is completely standalone, you will probably need to connect to the Internet. Saving information, accessing data feeds, or even getting updated files will require you to access the Internet. ...

Get Android™ Development Patterns: Best Practices for Professional Developers 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.