Code example for Cursor

Methods: getColumnIndex

0
                    ? extras.getBoolean(SearchManager.CURSOR_EXTRA_KEY_IN_PROGRESS)
                    : null)); 
        } 
        // Check if the Cursor indicates that the query is not complete and show the spinner 
        if (extras != null
                && extras.getBoolean(SearchManager.CURSOR_EXTRA_KEY_IN_PROGRESS)) {
            // mSearchView.getWindow().getDecorView().post(mStartSpinnerRunnable); // TODO: 
            return; 
        } 
        // If cursor is null or is done, stop the spinner 
        // mSearchView.getWindow().getDecorView().post(mStopSpinnerRunnable); // TODO: 
    } 
 
    /** 
     * Cache columns. 
     */ 
    @Override 
    public void changeCursor(Cursor c) {
        if (DBG) Log.d(LOG_TAG, "changeCursor(" + c + ")");
 
        if (mClosed) {