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
loopListViews and BaseAdapter
First, let's take a look at a random diversion