Code example for Button

Methods: setEnabled

0
  } 
 
  @Override 
  public void onServiceConnected(ComponentName className, IBinder binder) {
    service=IScript.Stub.asInterface(binder);
    btn.setEnabled(true);
  } 
 
  @Override 
  public void onServiceDisconnected(ComponentName className) {
    service=null;
  } 
} 
Contextual code suggestions in your IDE  Get Codota for Java