I searched it again on the web. According to this post "http://
groups.google.com/group/android-beginners/browse_thread/thread/
36454669a1e40172",
you need to change the line
int [] i = {R.id.myspinner};   TO   int[] i = new int[]
{ android.R.id.text1 };

coz android.R.id.text1 is predefined UI element for Spinner control
and
should be used in 'to' array , in your case "to" array is "i" array.

-- 
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.

NEW! Try asking and tagging your question on Stack Overflow at
http://stackoverflow.com/questions/tagged/android

To unsubscribe from this group, send email to
android-beginners+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en

Reply via email to