In this tutorial we cover the most basic example of how to include a prepopulated database in your application. We include the application in our assets folder, and the code does the rest. Very simple, two files and two classes.
If you would like a copy of the project discussed in video you may download it by clicking below.
This is a quick update to Tutorial 7. In this tutorial, we fully abstract our ViewHolder class. We implement a constructor and a populateFrom method, so that all future modifications can be done to the viewHolder class, without having to touch the Adapter. This is the basic ViewHolder that we will be using in all future tutorials, as needed, so it is a good idea to understand what it does.
In this video, we introduce the ViewHolder class, and why we like it. The ViewHolder class is used in conjunction with an ArrayAdapter, to cache the results of all findViewById calls. This speeds up our lists by up to 30 percent when we start dealing with very large lists.
This is basically the same as Tutorial 3, except we use the pressing of the center of the D-pad to add to our listview, instead of an onscreen button.
Download it here. Tutorial6.tar
This is a continuation on Tutorial 4. In this tutorial, we will define and call a custom ArrayAdapter class, instead of the built in adapter, to map our array of strings to our ListView.
This is the same as our simple note list, with color and pictures instead of the built in layout for our adapter. We do this by invoking a different constructor, and pass it 4 variables instead of 3. The first and last are the same, but the middle two are now a resource, which is our custom_list_item xml file, and the id of the TextView that will contain the strings of the array.
Note in the video I misspeak and call the second variable the NoteList, it should be the id of TextView.
This is a tutorial that covers how to add notes to a list, when pressing a button. It is about as simple as can be. It consists of only an EditText, ListView and a Button. There is one class, and one xml file.
Download it here free. Let me know if you like it or it helps you.
In this tutorial, I cover how to create a button in an activity to launch another activity. Now updated to Android 5.1, using 4.4.2 as minimum SDK.
This is my first Android development tutorial. It covers the built in Hello World! Project that is created when you create a new Android project in Eclipse, the files and directory structure there in, as well as one or two tips.