I've created a radio button menu list ..
final CharSequence[] items = { "3 sec", "5 sec", "7 sec" };
AlertDialog.Builder builder = new AlertDialog.Builder(this);
builder.setTitle("Change Wallpaper Every..");
builder.setSingleChoiceItems(items, -1,
new DialogInterface.OnClickListener() {
public void onClick(DialogInterface dialog, int item) {
Toast.makeText(getApplicationContext(), items[item],
Toast.LENGTH_SHORT).show();
}
});
AlertDialog alert = builder.create();
builder.show();
what I want to do is to catch the selected value from the above Char Sequence and to put to a variable .