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. Can someone explain the correct way to use android:layout_toRightOf?





My misinformation is from the API docs where it says"
"For the sake of efficiency, the relations between views are evaluated
in one pass, so if view Y is dependent on the position of view X, make
sure the view X comes first in the layout." -
http://developer.android.com/reference/android/widget/RelativeLayout.html

Where is the update documented?

-- 

2. Over Lay Problem

>


What does "is breaking the application" mean? Exception gets thrown? Doesn't
behave as expected? Your phone physically falls apart? What?

 Anyone has a solution for this?


Don't add that line to the code? Based on the limited information you
provided, that's the best I can offer right now. =P

-------------------------------------------------------------------------------------------------
TreKing - Chicago transit tracking app for Android-powered devices
http://sites.google.com/site/rezmobileapps/treking

--

3. show information after click on overlay

4. Can someone explain the correct way to use android:layout_toRightOf?

5. Can someone explain the correct way to use android:layout_toRightOf?

6. What is Rasterizer?

7. RenamingDelegatingContext overwrites existing database file - bug?