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?

Thanks.

--~--~---------~--~----~------------~-------~--~----~



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
 http://www.maximyudin.com/2008/02/25/android/how-to-use-alertdialogbuilder-in-android-applications/ 

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



-- 
/chihau

--~--~---------~--~----~------------~-------~--~----~


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. mobile ARM11-based platform, Linux 2.6.30 drivers - seeking suggestions for a quick port

Hello everyone - Any suggestions for a quick port? Have mobile ARM11-
based platform, Linux 2.6.30 drivers, need to port Android.  Thank you!

--~--~---------~--~----~------------~-------~--~----~
unsubscribe: android-porting+unsubscr...@googlegroups.com
website: 

2. Getting certain information off a web page

Hi All,

I was wondering if anyone can help me out and point me in the right
direction...

For an example, lets say i have a url which returns stats about a
certain football team (the team name is a parameter on the url) and it
displays the information purely as text (with maybe a bit of text
before and after):

Stadium: MyStadium
Capacity: 100,000
Shirt Colour: Red

Is anyone able to give me any advice on how i would go about
retrieving only the information i need so i can put it into my own
format and display it nicer? Would i need an xml parser, would i need
the page source code, if so how could i get it?

Thanks in advance,
Craig


--~--~---------~--~----~------------~-------~--~----~

3. Did anyone else miss this

4. Root Access for Unlocked MyTouch

5. build/core/main.mk:458: *** No TARGET_CPU_ABI defined by board config

6. Work on Android Security as Projec

7. simplecursoradapter updatining the listview