how to enable and disable button in android programmatically code example Example: stop displaying button in android myButton.setEnabled(false);