A Few More Things To Note
When using lists it is important to know what the underlying data source looks like. For example, an array of strings (like the one we used in episode #7) is easy to use but on the other hand it is also an immutable object and thus cannot be used if you want to be able to remove items from the list. Therefore you have to either use a different data source or you have to convert your existing array to a mutable object. In this tutorial I will show you how to convert the array from episode #7 to an ArrayList, that can then be used as a new data source for our list.
The Tutorial
If you have a question, criticism or any kind of suggestion, please feel free to leave a comment below. I alway appreciate feedback.
You can find the project files for this tutorial here: Episode #9 Project Files (.zip)
- Episode #6 – Notification & Long Clicks
- Episode #10 – Intents: An Introduction
- Episode #7 – Using Basic Lists
- Quick Tip #2 – Sorting Lists
- Episode #8 – The Alert Dialog
- Episode #11 – Intents: Multi Activity Applications
- Episode #3 – Using Buttons
- Episode #5 – Using Radio Buttons
- Episode #2 – Create A New Project And Run It
- Episode #4 – Checkboxes & Complex Layouts

Comments
joshua
11/01/2009 – 4:48 amGreat Stuff.
do you plan to develop more?
Mathias Reisch
11/01/2009 – 1:51 pm@joshua: Thank you very much! And yes, there will definitely be more tutorials coming up.
KC
03/05/2010 – 12:09 pmExcellent job! All very clear except: Why Toast.makeText has to use getApplicationContext() instead of context in AlertDialog.Builder() ?
Thx for the video!
John
03/31/2010 – 8:10 pmGreat Mathias! the people ask for new tutorials!!!!!
Hannes
05/28/2010 – 12:21 amjust for the record, as in addition to the context variable that is stored to access the instance of episode9.class, you can refference the ‘this’ from inside the inner scope by typing episode9.this. method or variable
at least i thought you could do so. but the appointed way of refferencing these variables is the most common and maybe the best practice, i don’t know, what do you think?
pranay
06/06/2010 – 7:51 amits really great and useful , could you please give a tutorial on using databases in android?
Mathias Reisch
06/06/2010 – 4:02 pmYo will be happy to hear that an introduction to using databases with Android is coming up next.
Stefan
07/14/2010 – 2:20 pmGreat tutorials!
I wonder if you will make a tutorial on how to parse XML?!
Mathias Reisch
07/14/2010 – 9:57 pmHi Stefan,
parsing XML is not really related to Android development but I might slip in some sort of quick tip on how to parse XML with Java.