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.
All that means is the you made a variable that you aren't using.
FreeSkiEdits 1 year ago
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.
DeLL116 1 year ago
U forgot to add the other activity to the Android manifest
james8080800 1 year ago
try crtl+shift+o
gaintshark 1 year ago
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.
swiz747 2 years ago
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.
fakeman62003 2 years ago
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.
fakeman62003 2 years ago
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.
fakeman62003 2 years ago
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.
fakeman62003 2 years ago