Esempio n. 1
0
 private void startControllerAutomatically() {
   if (SshControllerUtils.isAutoConnectEnabled() && autoChoose) {
     // Then, if there is a status = true, we connect to it
     for (int i = 0; i < SshControllerUtils.getControllers().size(); i++) {
       if (SshControllerUtils.getControllers().get(i).parent.state
           == Constants._SSHCONFIGURATION_CONNECTED) {
         CurrentConfiguration.controller = SshControllerUtils.getControllers().get(i);
         startControllerActivity();
       }
     }
   }
 }
  @Override
  protected void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    setContentView(R.layout.activity_global_configuration);

    autoConnect = (CheckBox) findViewById(R.id.autoConnectCheckBox);
    autoConnect.setChecked(SshControllerUtils.isAutoConnectEnabled());

    lockScreen = (CheckBox) findViewById(R.id.lockScreenCheckBox);
    lockScreen.setChecked(SshControllerUtils.isLockScreenEnabled());

    lookForHiddenFiles = (CheckBox) findViewById(R.id.lookForHiddenFilesCheckBox);
    lookForHiddenFiles.setChecked(SshControllerUtils.islookForHiddenFilesEnabled());
  }