How to get selected list items from a Listview with checkBox and Custom Adapter?
I have a ListView with CheckBox on it. and i am using Custom Adapter to populate the ListView . In my xml file i have a Button at bottom. what i want is let user select number of rows in ListView and when he/she clicked on the Button get the position of the selected items so that i could get the object for particular row for further calculations. Below Snippet does exactly what you want. package com.windrealm.android; import java.util.ArrayList; import java.util.Arrays; import java.util.List; import android.app.Activity; import android.content.Context; import android.os.Bundle; import android