AlertDialog - selected item

by Ajay » Thu, 22 Apr 2010 18:58:31 GMT


Sponsored Links
 Hi,
   I have an AlertDialog with a list of selectable items and a OK
button. How can I get the selected option, when the user clicks the OK
button?

Thank you,
AJ

--



AlertDialog - selected item

by Mark Murphy » Thu, 22 Apr 2010 19:02:56 GMT


 


Try calling getListView() on the AlertDialog. From there, you should be
able to call getCheckedItemPosition().

-- 
Mark Murphy (a Commons Guy)
 http://commonsware.com  |  http://twitter.com/commonsguy 

Android Consulting:  http://commonsware.com/consulting 

--


Sponsored Links


AlertDialog - selected item

by Ajay » Thu, 22 Apr 2010 19:16:33 GMT


 Thanks a lot again for a very quick reply!! You are a life saver :-)





>



Other Threads

1. Almost 10k Android Apps Added In March [Android Market Continues To Grow, Android vs iPhone Gets Mo re Interesting All The Time] 禄 TFTS 鈥?Technology, Gadgets & Curiosities

http://nexus404.com/Blog/2010/04/08/almost-10k-android-apps-added-in-march-android-market-continues-to-grow-android-vs-iphone-gets-more-interesting-all-the-time/?utm_source=twitterfeed&utm_medium=twitter

- sent from my droid ADP1 -

-- 
"Indonesian Android Community [id-android]" 

2. Question on showing contacts with all numbers

Hello,

I am struggling on how to display all the contacts and all their phonenumbers in one ListView. Because the persons and their phonenumbers are in two seperate dbase tables I need to do two queries. First one, is to get the user _ID the second one is lookup the phones tabel and based on that _ID get the numbers. Using a Cursor and a ListActivity with a single query is not that difficult, but what to do in this case where I need to do sub queries. I tried building my own datasctructure, but that is to slow and to expensive to do every time. How do I go about this. The end result would look like this, where each number is separately click-able. ContactName number number number ContactName number number ContactName number etc.. etc.. Thank you. Jiri --

3. which folder is the protocol source code for data service (packet service)

4. EditText functionality

5. How to detect "blowing in to the microphone"?

6. Launcher2 is not coming up on Eclair

7. sending lists from a server to client (android)