Code example for PreferenceCategory

Methods: setEnabled

0
		PreferenceCategory connectionSettings =(PreferenceCategory) findPreference("pcConnection");
		 
		if(startServer.isChecked())
		{ 
			//Log.d("ServerPreference", "is checked"); 
			connectionSettings.setEnabled(false);
			 
			/* 
			phoneActivity = new Intent(this, AsTeRICSService.class); 
			phoneActivity.putExtra(AsTeRICSService.Finish_operation, false); 
			startService(phoneActivity);*/ 
			/*connectionManager.StartServer();*/ 
			 
			/* 
			phoneActivity = new Intent(this, AsTeRICSphoneService.class); 
			phoneActivity.putExtra(AsTeRICSphoneService.StartService, true); 
			startService(phoneActivity);*/ 
			sendIntent(true); 
			 
		} 
		else