How come this doesn't work:
String btnText = ((Button)findViewById(R.id.my_Button).getText().toString();
But this does:
Button myButton = ((Button)findViewById(R.id.my_Button);
String btnText = myButton.getText().toString();
The getText() method can't resolve, but I'm not sure why when essentially these two line are the same.