Skip to Main Content
Beginning Android Programming: Develop and Design
book

Beginning Android Programming: Develop and Design

by Chris Haseman, Kevin Grant
December 2013
Beginner content levelBeginner
320 pages
7h 54m
English
Peachpit Press
Content preview from Beginning Android Programming: Develop and Design

Chapter 4. Acquiring Data

Although the prime directive of this chapter is to teach you how to acquire data from a remote source, this is really just a sneaky way for me to teach you about Android and the main thread. For the sake of simplicity, all the examples in this chapter will deal with downloading and rendering image data. In the next chapter, on adapters and lists, I’ll introduce you to parsing complex data and displaying it to users. Image data, as a general rule, is larger and more cumbersome, so you’ll run into more interesting and demonstrative timing issues in dealing with it.

The Main Thread

The Android operation system has exactly one blessed thread authorized to change anything that will be seen by the user. This alleviates what ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Creating Android Applications: Develop and Design

Creating Android Applications: Develop and Design

Chris Haseman
Android Fragments

Android Fragments

Dave MacLean, Satya Komatineni

Publisher Resources

ISBN: 9780133572681Purchase book