Android FilterQueryProvider - top ranked examples from Open Source projects

These code examples were ranked by Codota’s semantic indexing as the best open source examples for Android FilterQueryProvider class.

This code example shows how to use the following methods:runQuery
 
	@Override 
	public Cursor runQueryOnBackgroundThread(CharSequence constraint) {
		FilterQueryProvider filter = getFilterQueryProvider();
		if (filter != null) {
			return filter.runQuery(constraint);
		} 
		switch (type) {
		case ADRESS:
		default: 
			return ContactService.getContactsWithAdressCursor(contentResolver, constraint.toString());
		case MAIL:
			return ContactService.getContactsWithEmailCursor(contentResolver, constraint.toString());
		case PHONE:
			return ContactService.getContactsWithPhoneNumberCursor(contentResolver, constraint.toString());
 
		case PHONE_MAIL:
			return ContactService.getContactsWithEmailAndPhoneCursor(contentResolver, constraint.toString());
		} 
 
4
CodeRank
This code example shows how to use the following methods:runQuery
	} 
	 
	@Override 
	public Cursor runQueryOnBackgroundThread(CharSequence constraint)
	{ 
		return fqp.runQuery(constraint);
	} 
 
	public void setFqp(FilterQueryProvider fqp) {
		this.fqp = fqp;
	} 
 
	public FilterQueryProvider getFqp() {
		return fqp;
	} 
} 
4
CodeRank
This code example shows how to use the following methods:runQuery
     * @see #getFilterQueryProvider() 
     * @see #setFilterQueryProvider(android.widget.FilterQueryProvider) 
     */ 
    public Cursor runQueryOnBackgroundThread(CharSequence constraint) {
        if (mFilterQueryProvider != null) {
            return mFilterQueryProvider.runQuery(constraint);
        } 
 
        return mCursor;
    } 
 
    public Filter getFilter() {
        if (mCursorFilter == null) {
            mCursorFilter = new CursorFilter(this);
        } 
        return mCursorFilter;
    } 
 
    /** 
     * Returns the query filter provider used for filtering. When the 
3
CodeRank
This code example shows how to use the following methods:runQuery
	} 
	 
	@Override 
	public Cursor runQueryOnBackgroundThread(CharSequence constraint)
	{ 
		return fqp.runQuery(constraint);
	} 
 
	public void setFqp(FilterQueryProvider fqp) {
		this.fqp = fqp;
	} 
 
	public FilterQueryProvider getFqp() {
		return fqp;
	} 
} 
4
CodeRank
This code example shows how to use the following methods:runQuery
	} 
	 
	@Override 
	public Cursor runQueryOnBackgroundThread(CharSequence constraint)
	{ 
		return fqp.runQuery(constraint);
	} 
 
	public void setFqp(FilterQueryProvider fqp) {
		this.fqp = fqp;
	} 
 
	public FilterQueryProvider getFqp() {
		return fqp;
	} 
} 
4
CodeRank

Related Android FilterQueryProvider Questions & Answers:

See Code Examples for Android FilterQueryProvider Methods: