HelloSpinner Example!!

by weird0 » Sun, 26 Apr 2009 02:30:44 GMT


Sponsored Links
 I tried this simple example from HelloViews.

But the eclipse IDE gets stuck on this little thing and it does not
recognize ArrayAdapter. It states:-

"ArrayAdapter is a raw type. References to generic type
ArrayAdapter<T> should be parameterized"

For resolution on clicking the bulb:-

1. Add type parameters to 'ArrayAdapter'
2. Infer Generic Type Arguments

and two more.

I have imported two more... but ArrayAdapter is the bug in the
example. Why?

Android experts please suggest!!

Reagrds,
Android Beginner
--~--~---------~--~----~------------~-------~--~----~



HelloSpinner Example!!

by Roman Romano » Sun, 26 Apr 2009 04:26:08 GMT


 Aren't you supposed to put in between the < > what the array holds
(eg. <String>)?????

Regards

Roman




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


Sponsored Links


HelloSpinner Example!!

by Raphael » Mon, 27 Apr 2009 12:31:17 GMT


 Could you give us the exact source code line where this error occurs,
or maybe a short snippet function? That will allow us to understand
the error in context.

Thanks
R/




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



HelloSpinner Example!!

by weird0 » Mon, 27 Apr 2009 22:34:20 GMT


 Thanks Romano!!

ArrayAdapter<CharSequence> got the application to work. You can see
the code at developer.android.com in HelloView section.




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