Getting selected data from spinner using getSelectedItem() results in error

by gganesh » Fri, 04 Sep 2009 15:30:50 GMT


Sponsored Links
 Hi,
The spinner is binded with data's from from database using
SimpleCursorAdapter
and to display the selected data I used the method as below

   textview.setText(spinner.getSelectedItem().toString())

this gives me an out put like
android.database.sqlite.sqlitecur...@437451a0

Is this the right way to get the selected data?



--~--~---------~--~----~------------~-------~--~----~



Other Threads

1. view inside a customView

Is it possible to use standard views inside your custom defined views. e.g.
use ImageView in my class that is extended form View ?

Or is it possible to use one custom view inside another custom view?
Actually I have animations defined in xml view which I want to apply on some
of the images. But predefined animations can only be applied to views.


The scenario is,  I want to animate (rotating, glowing, etc ) some of the
chips  on a board. User can also drag these chips through touch events. And
I do not want to refresh my complete board just to rotate few chips on it.
All my animations are defined in xml files. Looking for some pointers.
Thanks



--
Best Regards,
Atif Gulzar

I  Unicode, zln 

-- 

2. GridView in a ListView: results are unusable the way it is now

> Thank you. I was looking for something that would mimic the behavior

Android doesn't offer much in the way of wrapping in its built-in layout
classes, other than text in a TextView (which can include links, via
Linkify or other means of creating a suitable Spannable).

You also could use HTML via a WebView, and nix the GridView and ListView
altogether.

-- 
Mark Murphy (a Commons Guy)
http://commonsware.com
Android App Developer Books: http://commonsware.com/books.html


-- 

3. OOT : Resiko peracun android

4. spam email notifikasi

5. Defining width for spinners options.

6. GridView in a ListView: results are unusable the way it is now

7. GridView in a ListView: results are unusable the way it is now