[android-developers] AlertDialog - selected item

2010-04-22 Thread Ajay
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 -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send

Re: [android-developers] AlertDialog - selected item

2010-04-22 Thread Mark Murphy
Ajay wrote: 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? Try calling getListView() on the AlertDialog. From there, you should be able to call getCheckedItemPosition(). -- Mark Murphy (a