Code example for CursorAdapter

Methods: getFilterQueryProvider

0
	 */ 
	@Override 
	public Cursor runQueryOnBackgroundThread(CharSequence constraint){
		Cursor currentCursor = null;
 
		if (getFilterQueryProvider() != null){
			return getFilterQueryProvider().runQuery(constraint);
		} 
 
		String args = "";
 
		if (constraint != null){
			args = constraint.toString();       
		} 
 
		EmpresaSqliteDao empresaDao =  new EmpresaSqliteDao();
		currentCursor = empresaDao.listarNombresEmpresas(contexto, args);
 
		return currentCursor;
	} 
Stop searching for code, let great code find you!  Add Codota to your java IDE