Hi, I am looking for some help in understanding the workings of the
Alert Dialog.  I currently have a working dialog that retrieves a
listing of players from the SQLite database.  The idea is for the user
to select a listed player from the list and I store that name in a
variable.  The snipet of code below gives me the position integer of
the name but not the name itself.  How can I get the name?

    return new AlertDialog.Builder(this)
         .setCancelable(false)
         .setTitle("Choose a Player")
         .setSingleChoiceItems(dba.getAllPlayers(), -1, Constants.playerName,
new DialogInterface.OnClickListener() {
                public void onClick(DialogInterface dialog, int item) {

                        ***** get the name of the player selected ****

                        dialog.dismiss();
                        startMenu();
                }
          })
         .create();


Thanks in advance and hope someone might shed some light on this for
me.  Cheers.

Glenn
Aging Cobol Programmer
Very New to Android

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to