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. playing video from browser in android running on beagle board

Dear All,

I have android running on beagle board.
Using browser, when i play video from m.youtube.com, i get following
messages and video does not play and screen becomes blank.

V/ActivityThread(  995): Resuming ActivityRecord{436f6480
token=android.os.binderpr...@436f6090 {com.android.camera/com.ande
I/MediaPlayer-JNI(  995): prepareAsync: surface=0xc8808 (id=1)
I/ActivityManager(  814): Displayed activity com.android.camera/.MovieView:
2708 ms
D/dalvikvm(  814): GC freed 3287 objects / 182488 bytes in 62ms
D/dalvikvm(  964): GC freed 2953 objects / 451800 bytes in 58ms
W/PlayerDriver(  789): Using generic video MIO
V/VideoMIO(  789): CloseFrameBuf
V/VideoMIO(  789): setParametersSync
V/VideoMIO(  789): setParametersSync
V/VideoMIO(  789): setParametersSync
V/VideoMIO(  789): setParametersSync
V/VideoMIO(  789): iVideoWidth=176
V/VideoMIO(  789): setParametersSync
V/VideoMIO(  789): iVideoHeight=144
V/VideoMIO(  789): setParametersSync
V/VideoMIO(  789): iVideoDisplayWidth=176
V/VideoMIO(  789): setParametersSync
V/VideoMIO(  789): iVideoDisplayHeight=144
V/VideoMIO(  789): setParametersSync
V/VideoMIO(  789): VIDEO SUBFORMAT SET TO X-YUV-420-PLANAR
V/VideoMIO(  789): CloseFrameBuf
V/VideoMIO(  789): using software codec
E/MemoryHeapBase(  789): error opening /dev/pmem_adsp: No such file or
directory
E/VideoMIO(  789): Error creating frame buffer heap
E/ALSALib (  789):
external/alsa-lib/src/pcm/pcm.c:2144:(snd_pcm_open_noupdate) Unknown PCM
AndroidPlayback_Speaker_normal
E/ALSALib (  789):
external/alsa-lib/src/pcm/pcm.c:2144:(snd_pcm_open_noupdate) Unknown PCM
AndroidPlayback_Speaker
E/ALSALib (  789):
external/alsa-lib/src/pcm/pcm.c:2144:(snd_pcm_open_noupdate) Unknown PCM
AndroidPlayback
I/AudioHardwareALSA(  789): Initialized ALSA PLAYBACK device AndroidPlayback
D/AudioHardwareALSA(  789): Set PLAYBACK PCM format to S16_LE (Signed 16 bit
Little Endian)
D/AudioHardwareALSA(  789): Using 2 channels for PLAYBACK.
D/AudioHardwareALSA(  789): Set PLAYBACK sample rate to 44100 HZ
V/VideoMIO(  789): initializing for hardware

What is this /dev/pmem_adsp and how to create it.
Is there anything related with beagle kernel (2.6.27 from git mentioned in
beagle wiki) or related with android framework.

Using software codec means what, it will open which codec.
Also initializing hardware what it means.

Regards,
HarishKumar.V

--~--~---------~--~----~------------~-------~--~----~
unsubscribe: android-porting+unsubscr...@googlegroups.com
website: 

2. Application developer wanted for contract work

and btw, best of luck on the 20K for 2 months.






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

3. How Hard Is to Build RSS Feeds App for Android?

4. How Hard Is to Build RSS Feeds App for Android?

5. PhoneStateListener not getting called for the second outgoing call

6. How to layout a widget programmically in java

7. Keep app from restarting when touching icon from Home screen