FAQs
Search
Recent Topics
Flagged Topics
Hot Topics
Best Topics
Register / Login
Win a copy of
Java by Comparison (eBook)
this week in the
Java in General
forum!
Post Reply
Bookmark Topic
Watch Topic
New Topic
programming forums
Java
Mobile
Certification
Databases
Caching
Books
Engineering
Micro Controllers
OS
Languages
Paradigms
IDEs
Build Tools
Frameworks
Application Servers
Open Source
This Site
Careers
Other
all forums
this forum made possible by our volunteer staff, including ...
Marshals:
Tim Cooke
Liutauras Vilda
Bear Bibeault
Devaka Cooray
Jeanne Boyarsky
Sheriffs:
Paul Clapham
Campbell Ritchie
Henry Wong
Saloon Keepers:
Tim Moores
Ron McLeod
salvin francis
Stephan van Hulst
Vijitha Kumara
Bartenders:
Tim Holloway
Carey Brown
Frits Walraven
Forum:
Android
A problem in my activity main
Sarra Sakka
Ranch Hand
Posts: 283
posted 3 years ago
Hi, I have a problem in my main activity here :
ArrayAdapter adapter = ArrayAdapter.createFromResource(this, R.array.devises, android.R.layout.simple_spinner_item);
and the problem is :
Multiple markers at this line - array cannot be resolved or is not a field - ArrayAdapter is a raw type. References to generic type ArrayAdapter<T> should be parameterized
Could you please what should i do to solve this problem ?
Ron McLeod
Saloon Keeper
Posts: 1709
234
I like...
posted 3 years ago
Is the resource name
R.array.devises
a typo?
Check the
API documentation
-
createFromResource
returns a
ArrayAdapter<CharSequence>
Post Reply
Bookmark Topic
Watch Topic
New Topic
Boost this thread!
Similar Threads
ListView - next previous about another Activity
Need help with: setListAdapter(adapter);
how can we view the two lists on a single display???
Tring to do a spinner and i am getting errors
android - intent
More...