@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()); }
@Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_main); CurrentConfiguration.instance = this; controllerList = (ListView) findViewById(R.id.controllerList); controllerAdapter = new ControllerAdapter(this); controllerList.setAdapter(controllerAdapter); controllerAdapter.notifyDataSetChanged(); controllerList.setOnItemLongClickListener(this); controllerList.setOnItemClickListener(this); }