Alright, I've taken Java before but never used it outside of the extremely simple programs for class. My strong suit was certainly in other languages.
Basically, I'll explain the problem rather than writing out code and saying 'fix it.' All I want to do is expand my simple HelloWorld app so that there's 2 buttons, and each one does a separate action. This was simple and is done.
I want an app so that when I click a button, it enables/disables the other button. I was going to accomplish this using isClickable() and setClickable()
Now the big problem. Because the method for what the button does is within the method that the buttons are defined in, you cannot access the variables (nor the buttons) within the code that is executed upon a click.
Now the solution: Make the buttons public. Pretty simple solution... I mean, who wouldn't think to do that?
Couldn't tell you why, but when I define the buttons as public and a part of the class rather than the onCreate method, it simply crashes without giving a reason why. I do not modify the code in any way, is the problem, I only copy/paste it.
So, if you would like to see my source so far, feel free to ask, but I don't feel that the actual code is relevant.
edit: I'm also not usually one to ask for help like this. I got flak from a veteran coder for simply asking him a specific question as if I didn't research the problem myself. All I can find is accessing variables from within one method to the class above it, but not a method inside of a method. Or, as I said, I'm simply told to make the variables public. Neither is a solution to my problem, as stated.