I'm having trouble populating my Spinner, so I'm using the tutorial on Google website,
http://developer.android.com/resourc...o-spinner.html
When I get to part 4, and I put the code in the the java folder, a bunch of red X开发者_StackOverflow中文版's pop up, giving me errors.
My questions is do I delete everything in the oncreate () .java file and insert the code from Googles site? When I do it give me errors, this is what happens,
http://imgf.tw/206693399.png
I'm know my coding is wrong, can anybody point me in the right direction?
Do you have all the imports right? Try pressing (I think) ctrl-shift-o to lead missing imports for Spinner and ArrayAdapter.
精彩评论