How can I edit a button from another Activity?
It returns me an
java.lang.IllegalStateException: Could not execute method of the activity
Caused by: java.lang.NullPointerException
When I want to
getButton.setEnabled(false);
where
Button getButton = (Button)findViewById(R.id.buttonGet);
Make sure you have called setContentView before you get a reference to your button, i.e do this:
before this: