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.




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



Other Threads

1. How to handle call button

Hi,
I am new to android world.
I have created a application, which basically calls a predefined
number, when a button on my view is clicked.

what i want to do is, if some one press the call Key on the device,
and not the button on my view (it's important), the application should
do the same thing.

any one has any idea?

Thanks.

-- 

2. android xml files

hi i m new to android.....

my question is what is the use of xml files in android.....like in j2me we
wont have any xml files......simply we have source file...in andorid also we
are having source files...then whats the use of xml files...
2)whats the difference between res/ and assets/

-- 

3. Issue with playing audio/video from remote url

4. Issue with playing audio/video from remote url(HTTP/RTSP)

5. SDK r3 on Ubuntu 9.10

6. Are the standards for images/icons still valid?

7. HelloAndroid app crashing