Welcome to the Java Programming Forums


The professional, friendly Java community. 21,500 members and growing!


The Java Programming Forums are a community of Java programmers from all around the World. Our members have a wide range of skills and they all have one thing in common: A passion to learn and code Java. We invite beginner Java programmers right through to Java professionals to post here and share your knowledge. Become a part of the community, help others, expand your knowledge of Java and enjoy talking with like minded people. Registration is quick and best of all free. We look forward to meeting you.


>> REGISTER NOW TO START POSTING


Members have full access to the forums. Advertisements are removed for registered users.

Results 1 to 3 of 3

Thread: Help with R.id error (New Boston Tutorials)

  1. #1
    Junior Member
    Join Date
    Jan 2012
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Question 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


  2. #2
    Java kindergarten chronoz13's Avatar
    Join Date
    Mar 2009
    Location
    Philippines
    Posts
    659
    Thanks
    177
    Thanked 30 Times in 28 Posts

    Default 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

  3. #3
    Junior Member
    Join Date
    Jan 2012
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default 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!
    Last edited by System6music; January 19th, 2012 at 11:11 AM.

Similar Threads

  1. Java - Tutorials done now request assistance?
    By mdiz in forum Java Theory & Questions
    Replies: 2
    Last Post: January 11th, 2012, 02:26 PM
  2. C++ tutorials and forums
    By newbie in forum Other Programming Languages
    Replies: 2
    Last Post: September 21st, 2011, 09:14 PM
  3. Java Tutorials and Help
    By theitranger in forum The Cafe
    Replies: 4
    Last Post: March 31st, 2011, 05:24 PM
  4. Basic Java Tutorials
    By uimbibe in forum The Cafe
    Replies: 0
    Last Post: January 26th, 2011, 12:55 PM
  5. Best way to learn java for beginners
    By JavaPF in forum The Cafe
    Replies: 0
    Last Post: May 8th, 2008, 04:37 AM