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. migrate android to hardware

Hi all:
     
    I'am going to migrate android to OMAP2430. how could I get start?
    Is there any migration step I can follow ? Is that possible to share some 
resource with me?
    Thanks
--~--~---------~--~----~------------~-------~--~----~

2. Generate a white noise mp3 file

Ho,

I'm trying to write an array of random bytes to a file, specifically
to generate white noise.

I'm having some trouble though finding how to get a FileOutputStream
written... does anyone have any idea how I can output my bytearray?

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

3. Android vs Symbian.

4. So when will we be allowed to Force Quit any process we want without root access?

5. Download Crutch

6. Android HAL library

7. Pre populating emulator with sms message