Code example for Filter

Methods: filter

0
		 
	} 
 
	@Override 
	public void afterTextChanged(Editable s) {
		filter.filter(s);
	} 
 
	@Override 
	public void onItemClick(AdapterView<?> parent, View view, int position,
			long id) {
		Intent data = new Intent();
		if ( adapter instanceof CursorAdapter ) {
			data.putExtra("selection", id);
		} else { 
			data.putExtra("selection", (Serializable)parent.getItemAtPosition(position));
		} 
		setResult(RESULT_OK, data);
		finish();
	} 
Connect your IDE to all the code out there  Get Codota for Java