Custom Data Adapters with Checked List Views – Part I

This entry is part 40 of 50 in the series Android Development Primer

This entry is part 40 of 50 in the series Android Development PrimerWe have been using ArrayAdapter and SimpleCursorAdapter while populating our List View with elements from an array and a database respectively. It is worth knowing that both these classes are subclasses of the DataAdapter class. The DataAdapter class is the primary class that […]

Continue reading →

Context Menus is List View using Simple Cursor Adapter

This entry is part 39 of 50 in the series Android Development Primer

This entry is part 39 of 50 in the series Android Development PrimerYou have already seen how Context Menus work with ArrayAdapter. In case of SimpleCursorAdapter┬áthere are a few methods that can be used in order to retrieve the data about the item that is being clicked. This process is a bit different from the […]

Continue reading →

List View using SimpleCursorAdapter – Part I

This entry is part 37 of 50 in the series Android Development Primer

This entry is part 37 of 50 in the series Android Development PrimerTill now we have been populating our List View with a predefined String array using the ArrayAdapter class of Java. Practically, a predefined array is hardly, if ever, used. Most of the times you would want to populate the List View using the […]

Continue reading →

Adding Long Click functionality in List View – Context Menus Clicks

This entry is part 36 of 50 in the series Android Development Primer

This entry is part 36 of 50 in the series Android Development PrimerNow that we are familiar with long clicks and Context Menus that are triggered by them, we must understand that Context Menus are but a kind of menu and just like any other type of menu, their items too are clickable. In fact, […]

Continue reading →

Adding Click functionality in List View – onItemClickListener()

This entry is part 34 of 50 in the series Android Development Primer

This entry is part 34 of 50 in the series Android Development PrimerIn the previous posts we saw how we can, in a number of ways populate out List Views. However, most of the times just populating and displaying List Views aren’t enough. You must have seen that in most of the applications, we can […]

Continue reading →

List View using Array Adapters – Part III : Using Custom Row Layouts

This entry is part 33 of 50 in the series Android Development Primer

This entry is part 33 of 50 in the series Android Development PrimerTill now we have been using Android’s default row layout for populating the ListView. It might sometimes become necessary to use one that satisfies our needs, thereby creating a custom row layout. As I had said in my earlier posts that there are […]

Continue reading →

List View using Array Adapters – Part II : Using ListActivity

This entry is part 32 of 50 in the series Android Development Primer

This entry is part 32 of 50 in the series Android Development PrimerIn the previous post, I showed you how to create a ListView and populate it with elements of a String array. If you can recall, we used a regular activity in the process. By regular activity I mean that our Java class extended […]

Continue reading →