[Help] Spinner Error

Put your problem here if it does not fit any of the other categories.

[Help] Spinner Error

Postby khobhe » Tue Mar 15, 2011 4:28 am

I try build app but i've got warning when make spinner

this is the printscreen, hope anyone in this forum can help resolve my problem

Image

the warning message : ArrayAdapter is a raw type. References to generic type ArrayAdapter<T> should be parameterized
User avatar
khobhe
Junior Developer
Junior Developer
 
Posts: 12
Joined: Wed Mar 02, 2011 7:33 am

Top

Re: [Help] Spinner Error

Postby ruelblapid » Tue Mar 15, 2011 4:45 am

Hi khobhe,

the warning message : ArrayAdapter is a raw type. References to generic type ArrayAdapter<T> should be parameterized


The warning is clear you should replace your ArrayAdapter into generic type here's the work around.
If your values are in type of Strings you can set the ArrayAdapter<CharSequence> etc..

Best,
Ruel B. Lapid
Senior Android Engineer
User avatar
ruelblapid
Experienced Developer
Experienced Developer
 
Posts: 65
Joined: Mon Mar 14, 2011 2:37 am

Top

Return to Other Coding-Problems

Who is online

Users browsing this forum: Google [Bot] and 20 guests