"how can i get the value of the control from within the onClick()"
You are passed the dialog on which the click occurred. On Nov 3, 2010 5:32 PM, "dashman" <[email protected]> wrote: > i've got an AlertDialog (here's a snippet) > > AlertDialog.Builder builder.setPositiveButton("OK", new > DialogInterface.OnClickListener() > { > public void onClick(DialogInterface dialog, int id) > { > ???.findViewById(R.id.code); > } > } > > once the user clicks ok - i'd like to get a value of the control > within > the dialog (my layout) > > because of scoping i can't user builder or the alertdialog. > > how can i get the value of the control from within the onClick() > > > > > -- > You received this message because you are subscribed to the Google > Groups "Android Developers" group. > To post to this group, send email to [email protected] > To unsubscribe from this group, send email to > [email protected]<android-developers%[email protected]> > For more options, visit this group at > http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en

