The code is simple
final CharSequence[] photo = {"Manage Devices","Manage Connections"};
AlertDialog.Builder alert = new AlertDialog.Builder(MainActivity.this);
alert.setTitle("Settings For");
alert.setSingleChoiceItems(photo, -1, new
DialogInterface.OnClickListener() {
@Override
public void onClick(DialogInterface dialog, int which) {
Log.v(LOG_TAG,"chosen "+which);
}
});
alert.show();
References:
No comments:
Post a Comment