Java tutorial
//package com.java2s; import android.widget.AbsListView; public class Main { public static void setAbsListViewAllItemsChecked(AbsListView absListView) { int count = absListView.getCount(); for (int position = 0; position < count; ++position) { absListView.setItemChecked(position, true); } } }