Chapter 13. Handling and Displaying Arrays of Data

In this chapter, you will learn about Java arrays that allow us to manipulate a potentially huge amount of data in an organized and efficient manner. We will also use a close Java relation to arrays, ArrayLists and see the differences between them.

Once we are comfortable with handling a large amount of data, we will see what the Android API has that will help us to easily connect our new-found data handling skills to the user interface without breaking a sweat.

The topics in this chapter are as follows:

  • A random diversion
  • Handling large amount of data with arrays
  • A simple array example
  • A dynamic array example
  • A multidimensional array example
  • ArrayLists
  • The enhanced for loop
  • ListViews and BaseAdapter

First, ...

Get Android Programming for Beginners 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.