AlertDialog, ListView with simpleAdapter and onItemClickListener

view full story

http://stackoverflow.com – I have an AlertDialog with ListView and I can't understant how to get checked items... In AlertDialog i create view in code. Solve my problems please. AlertDialog. WORK CORRECT : public class MyDialog { ...... AlertDialog.Builder adb; private Dialog onCreateDialog(int id, Context context) { workWithDB = new WorkWithDB(context); adb = new AlertDialog.Builder(context); switch (id) { case ActivityMain.DIALOG_ADD_BUTTONS: adb.setTitle(R.string.app_name); adb.setIcon(android.R.drawable.ic_input_add); adb.setPositiveButton(R.string.dialogAdd (HowTos)