Alert icon
We're changing our privacy policy. This stuff matters.  Learn more  Dismiss

First Android app

Loading...

Sign in or sign up now!
Alert icon
Upgrade to the latest Flash Player for improved playback performance. Upgrade now or more info.
5,004
Loading...
Alert icon
Sign in or sign up now!
Alert icon

Uploaded by on Nov 22, 2009

this is my first time developing an app for the Android based platform...I watched a youtube tutorial, it was fine up till the end, I think something was left out. because as you can see I get an error message every time I click to change it to green. please email me at vipergac@gmail.com if you have any suggestions.

Category:

Howto & Style

Tags:

License:

Standard YouTube License

  • likes, 2 dislikes

Link to this comment:

Share to:
see all

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