How to set AlertDialog button focus?

by blindfold » Sat, 30 Aug 2008 04:46:55 GMT

Sponsored Links
 I was looking for something like .requestFocus() to set focus for a
default button in a two-button AlertDialog, such that the user need
only press the enter key when accepting the default button (the one
that has focus). It seems though that neither PositiveButton nor
NegativeButton get a default focus, and I could not find a method to
set focus to either one of them. So how can one set focus to a
particular AlertDialog button?



How to set AlertDialog button focus?

by Chihau Chau » Sat, 30 Aug 2008 05:38:38 GMT

 Hi, maybe this url would be util for you 

2008/8/29 blindfold <[EMAIL PROTECTED]>



Sponsored Links

How to set AlertDialog button focus?

by blindfold » Sat, 30 Aug 2008 16:39:33 GMT

 Thanks, but here too I have to press an arrow key or something before
any of the buttons gets focus. I want one of the buttons to have focus
right away, such that just pressing OK/Enter/Fire will activate that
button without a need to click it or navigate to it.


Other Threads

1. The application has stopped unexpectedly. Please try again.

Print out the values of the strings just before you try to convert them,
then the value of what you get.
Why are you using Float to get a double value?

TreKing - Chicago transit tracking app for Android-powered devices


2. Android Market woes... the press finally catch on

On the plus side, "Google declined to comment for this story, citing
the timing of its I/O conference next week."

And we've also seen that they are *finally* going to have 'feedback'
of some kind in the android developer console. I'm hoping for decent
analytics and the ability to respond to market 'reviews'.


3. WebView Horizontal Scroll Not Working

4. Android Emulator - Eclipse cannot see it

5. which android dev phone to buy? (preferably with keyboard)

6. ASK: Download manager utk android?

7. Installing apps on Zoom 2