Welcome, Guest: Join Nairaland / LOGIN! / Trending / Recent / New
Stats: 2,483,468 members, 5,624,050 topics. Date: Thursday, 28 May 2020 at 04:58 PM

Help Needed In Andriod Dev - Programming - Nairaland

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

Ways To Improve Internet Speed In Andriod Phones / Help Needed To Get A Scammer / Learnt Web Development, What Next? (web-dev challenge) (2) (3) (4)

(1) (Reply) (Go Down)

Help Needed In Andriod Dev by paranorman(m): 8:42pm On May 22
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
click (alt + enter) on the error
Re: Help Needed In Andriod Dev by toke111: 8:18am On May 23
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
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)

Free Courses For Download / A Remastered History Of Tony Hawk’s Pro Skater 1 & 2 Arrives This September / Creation And Instant Upwork Account Approval Within 2mins

(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 - 2020 Oluwaseun Osewa. All rights reserved. See How To Advertise. 20
Disclaimer: Every Nairaland member is solely responsible for anything that he/she posts or uploads on Nairaland.