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 android support more than one sdcard?

Hey Guys,

    Is there anyone tell me android support more than one sdcard?
    How to add one more sdcard by coding?

    Thanks,

Nikki

-- 

2. android-porting@googlegroups.com

The Rowboat[1] project has already ported Android to OMAP3EVM,
Beagleboard and IGEP..

[1] - http://code.google.com/p/rowboat, http://gitorious.org/rowboat

Regards
-- Ashwin





> website: 

3. Activity not found in AndroidManifest.xml exception???

4. how to compile a helloworld in AOSP- Entire android source code..!! Couldnt see apk generated.

5. how do i get the sensor data on mapoverlay?

6. users report paid app doesn't download/install

7. Opening control to my app to other developers