Exercise: Android ListView and ArrayAdapter

It is now time to exercise ListView and ArrayAdapter.

Getting ready

Read, run and understand the Listview + ArrayAdapter examples from the weekly plan.

Do it again

Now you must make something similar for Studens, not Teachers: A list of Students - when the user clicks a Student from the list another Activity opens and show the details of the student (maybe with possibilities for changing the data about the student).

  1. Create a new project
  2. In the project create a class Student with various properties, constructors and a toString() method.
  3. Decide whether your top level (main) Activity should extend is a ListActivity or has a ListView.
  4. Make the DetailActivity
  5. Set up an Intent to go from the top level Activity to the detail Activity.