Code example for SimpleCursorAdapter

Methods: getFilter

0
 
	    @Override 
	    public void onTextChanged(CharSequence s, int start, int before, 
	            int count) { 
	         
	    	adapter.getFilter().filter(s.toString());	    	 
	    } 
 
	}; 
	 
	@Override 
	public void onItemClick(AdapterView<?> parent, View view, int position,
			long id) {
		Cursor cursor = (Cursor) parent.getItemAtPosition(position);
		Intent vendorInfoIntent = new Intent(this, VendorInfoActivity.class);
		vendorInfoIntent.putExtra("id", cursor.getLong(0));
		startActivity(vendorInfoIntent);
	} 
 
	@Override 
	public boolean onCreateOptionsMenu(Menu menu) {