Go for Custom dialogs by extending the Dialog class. That should help you.

On Thu, Nov 4, 2010 at 4:02 AM, dashman <erjdri...@gmail.com> 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 android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com<android-developers%2bunsubscr...@googlegroups.com>
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en




-- 
Kumar Bibek
http://techdroid.kbeanie.com
http://www.kbeanie.com

-- 
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