Added: 2 years ago
From: vipergac
Views: 5,039
Sort by time | Sort by thread (beta)

Link to this comment:

Share to:

All Comments (10)

Sign In or Sign Up now to post a comment!
  • All that means is the you made a variable that you aren't using.

  • use the DDMS to use the logcat see what at what line the program fails....the little "error" you see isn't an error, Eclipse is just telling you that the variable you just defined is never used. It's not an error, it's just letting you know that you never used that variable.

  • U forgot to add the other activity to the Android manifest

  • try crtl+shift+o

  • hey i saw the same video as you and in the same bind you are. if you have any info on the problem send me a message if you find out.

  • Part 4:

    Coukd you zip up your project and pst it online someplace? It would help a lot since the video is harder to read then the real files :-D.

    Hope to help, and sorry to spread this message out over four comments.

  • Part 3:

    So I'm guessing the real problem you have hit is a run time error of some sort, probabbly caused by typing "red" in some location where it should have been "green", or vice versa. Android has some hidden error logs that could give us more clues, but this is a simple enough program that it should not be necessary to resort to that.

  • Part 2:

    Removing code is certainly not your issue.

    In this case, it is because you don't have any code to go back to the red activity from the green one, so the button on the green activity does nothing. But that should be harmless. I've never heard of any system where a button that does nothing causes problems, besides confusing users.

  • I'm a developer, but have not done much with Android, so I probably cannot tell you exactly whats wrong, but should be able to guide you in the correct direction.

    Part 1:

    You are quite right that the application you have is incomplete. The yellow "Error" is actually a warning. It appears that you defined some variable that you are not using. This may be harmless, but is usually a sign that code is incomplete, or that when removing code you did not manage to remove all of it.

Loading...
Alert icon
0 / 00Unsaved Playlist Return to active list
    1. Your queue is empty. Add videos to your queue using this button:
      or sign in to load a different list.
    Loading...Loading...Saving...
    • Clear all videos from this list
    • Learn more