I have a requirement like the student names will be taking from the db and showing it in an alert box. a checkbox should be displayed for each student name in that alert so that the user can select the student names from alert box.I have done with the student names.Can any one give an idea to display the checkbox for each student
public void Show_friends()
{
AlertDialog.Builder builder1 = new AlertDialog.Builder(this);
try
{
builder1.setItems(paymentby,new DialogInterface.OnClickListener()
{
public void onClick(DialogInterface dialog, int item)
{
}
}
);
AlertDialog alert = builder1.create();
alert.show();
}
catch (Exception e) {
System.out.println("Gesture exception caught");
}
System.out.println("================vij=========================inside if");
}
}
This is my code