Help with R.id error (New Boston Tutorials)
I have about 8 different series of tutorials at the moment and all of them start me off...everything is fine...emulator is up and running...hello world is ok. I have found ALL of them to get stuck at this one spot.
IDK if it is a change in Eclipse or ADT, but I could really, really use some help!
This is the code I am having an issue with, and this is where the video and the code don't do the same thing.
Video link : Android Application Development Tutorial - 8 - Setting up Variables and Referencing XML ids - YouTube
add = (Button) FindViewByID(R.id.bAdd); sub = (Button) findViewById(R.id.bSub); display = (textview) findViewById(R.id.tvDisplay)
The bAdd, bSub, and tvDisplay do not turn blue and are not referenced or indexed.
I have tried "SAVE ALL", I have tried closing and re-opening it. I have deleted it and re-wrote the code...it still will not find these items. If anyone of you would take a few seconds to help me it would mean a LOT. Thanks in advance.
P.S. I'm a TRUE beginner. I know HTML, CSS, and XML....so please hold my hand and give me a step by step if you can.
Images to my code (I am aware of the capitalization errors and have been told to delete "import android.R;" by others. When I delete it, it automatically comes back when I start to write code again.)
http://i.imgur.com/oRt7j.png
http://i.imgur.com/Xx7Wq.png
Re: Help with R.id error (New Boston Tutorials)
if that video came from theNewBoston, im sure you know bucky, he's the creator of theNewBoston site and they have a forum out there, you can check it, you may find what youre looking for
Re: Help with R.id error (New Boston Tutorials)
Bucky seems cool. I haven't spoke to him at all, but I did search the forums, post there, and I have been to the almost empty IRC 7-8 times. No luck yet. Thank you!
Here are screenshots of my code. THANK YOU for helping me. This is SO frustrating!
http://i.imgur.com/G5blm.png
http://i.imgur.com/PKnqa.png
I cannot figure it out at all. I am going to delete my project, update my SDKs and files from the Android repository and start this tutorial session again from the very beginning.
I would like to thank you all for your help. I wish I had someone who could use teamviewer or something so we could go over it, but the comments have been great.
I would like to code professionally, and have a project I am trying to complete now through learning the basics. The devil is in the details and I have a feeling I skipped something important so here is to wiping thew slate clean. Thank you all!