Welcome, Guest: Register On Nairaland / LOGIN! / Trending / Recent / New
Stats: 3,150,230 members, 7,807,765 topics. Date: Wednesday, 24 April 2024 at 06:44 PM

Help Needed In Andriod Dev - Programming - Nairaland

Nairaland Forum / Science/Technology / Programming / Help Needed In Andriod Dev (583 Views)

Tech Guys/girls IOS Vs Andriod Which Do You Use And Why / Learn How To Make Photoshop-like Graphics Designs On Your Andriod Phone! / Full-stack Andriod/ios Developer At Rimuda Technologies Limited (2) (3) (4)

(1) (Reply) (Go Down)

Help Needed In Andriod Dev by paranorman(m): 8:42pm On May 22, 2020
Spinner spinnerCourses = findViewById(R.id.spinner_courses) ;
List<courseinfo> courses = DataManager.getInstance().getCourses() ;

ArrayAdapter<courseinfo> adapterCourses =
new ArrayAdapter<>(this, andriod.R.layout.simple_spinner_item, courses) ;

adapterCourses.setDropDownViewResource(andriod.R.layout.simple_spinner_dropdown_item) ;

spinnerCourses.setAdapter(adapterCourses) ;


Above is a snippet from my NoteActivity.java file

I got the error that package andriod.R.does not exist! Seriously?!

I am new to Andriod development and following a course on Pluralsight.
In the above, I am trying to populate a spinner using an array adapter class.

Attached, are the screen shots:

Re: Help Needed In Andriod Dev by CaptainMarvel(m): 4:53am On May 23, 2020
click (alt + enter) on the error
Re: Help Needed In Andriod Dev by toke111: 8:18am On May 23, 2020
Change Android.R.layout.simple_spinner...
to R.layout.simple_spinner...

1 Like

Re: Help Needed In Andriod Dev by Benphilip: 8:22am On May 23, 2020
Do you have smartphone and you don't make money online chat me on Whatsapp let me show you how I make money from a site I watch videos from every week my number 09052458747 or drop your WhatsApp number on my quote

(1) (Reply)

I Can Set Up A Website That Lets You Sell Airtime, Data, Tv Subs, Electric Bill / Data Science Hackathon: It's Time For Your Best Ideas / Oyenola Philip One Of The Youngest Programmers Nigeria Has

(Go Up)

Sections: politics (1) business autos (1) jobs (1) career education (1) romance computers phones travel sports fashion health
religion celebs tv-movies music-radio literature webmasters programming techmarket

Links: (1) (2) (3) (4) (5) (6) (7) (8) (9) (10)

Nairaland - Copyright © 2005 - 2024 Oluwaseun Osewa. All rights reserved. See How To Advertise. 7
Disclaimer: Every Nairaland member is solely responsible for anything that he/she posts or uploads on Nairaland.