Code example for EditText

Methods: getEditableText

0
		chkNovelOnly.setChecked(PreferenceManager.getDefaultSharedPreferences(this).getBoolean(Constants.PREF_IS_NOVEL_ONLY, false));
		chkNovelOnly.setOnCheckedChangeListener(new OnCheckedChangeListener() {
			 
			public void onCheckedChanged(CompoundButton buttonView, boolean isChecked) {
				SetNovelOnly(isChecked);
				doSearch(search.getEditableText());
				progress.setVisibility(View.VISIBLE);
			} 
		}); 
		 
	} 
	 
	protected void SetNovelOnly(boolean isChecked) {
		SharedPreferences sharedPrefs = PreferenceManager.getDefaultSharedPreferences(this);
    	SharedPreferences.Editor editor = sharedPrefs.edit();
    	editor.putBoolean(Constants.PREF_IS_NOVEL_ONLY, isChecked);
    	editor.commit();
	} 
 
	protected void LoadItem(int position) {
		PageModel page = adapter.getItem(position);