Hi again,

Ive now found the solution I was after which was there all the time.
Was just looking in the wrong place. AlertDialog has a method
getButton() which returns the requested Button View object.
Interestingly though this method only works when onCreateDialog() and
showDialog() have returned otherwise it returns null.

Regards,

A

On Jul 22, 1:17 pm, Andy <[email protected]> wrote:
> Many thanks for that.
>
> Ive already thought of those solutions but with regard to accessing
> via debugger inspection the id value may not be constant in future
> implementations of android. I was looking for a programmatic method of
> accessing them or by use of an android specified id value.
> Like the TreKing app by the way...very powerful. Im working with a
> wayfinding company looking at map creation technologies, mobile
> mapping apps around other cities such as London.
>
> A
>
> On Jul 22, 5:31 am, TreKing <[email protected]> wrote:
>
> > On Wed, Jul 21, 2010 at 1:19 AM, Andy <[email protected]> wrote:
> > > I want to access the buttons for validation purposes so I can enable the
> > > 'save' button but only when correct input has been entered in EditText 
> > > View.
>
> > Ah. Well, you could step through the debugger and navigate the view of the
> > dialog to see if you can find the button ids that way. If that doesn't work,
> > you can always create your own view with your own ID'ed buttons that you can
> > control as you wish.
>
> > -------------------------------------------------------------------------------------------------
> > TreKing <http://sites.google.com/site/rezmobileapps/treking> - Chicago
> > transit tracking app for Android-powered devices

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

Reply via email to