We have come across this issue many times during programming to get a selected item in your combobox.
ANDROID has built in functions to get the selected item from a spinner.
Take a look at the snippet.
Here my_spinner id the spinner variable and using getSelectedItem() which will return an object and by using toString() I am converting it to human readable string…


Please leave your valuable comments…..



  1. santhosh August 5, 2011 at 10:15 pm

    simply superb. Thank you soooooo much.

  2. bangsat February 13, 2013 at 6:31 am


  3. Pingback: Customizing a spinner in android.

  4. Pingback: Custom Spinner in Android Redone using BaseAdapter..

Leave a Reply

Your email address will not be published. Required fields are marked *




Theme by HermesThemes

Copyright © 2018 CoderzHeaven. All Rights Reserved

Please wait...

Subscribe to our newsletter

Want to be notified when our article is published? Enter your email address and name below to be the first to know.