Cursor moveToPrevious - top ranked examples from Open Source projects

These code examples were ranked by Codota’s semantic indexing as the best open source examples for Cursor moveToPrevious method.

This code example shows how to use the following methods:moveToPrevious
    return wrappedCursor.moveToNext();
  } 
 
  @Implementation 
  public boolean moveToPrevious() { 
    return wrappedCursor.moveToPrevious();
  } 
 
  @Implementation 
  public boolean isFirst() { 
    return wrappedCursor.isFirst();
  } 
 
  @Implementation 
  public boolean isLast() { 
    return wrappedCursor.isLast();
  } 
 
  @Implementation 
  public boolean isBeforeFirst() { 
6
CodeRank
Connect your IDE to all the code out there  Get Codota for Java
This code example shows how to use the following methods:moveToPrevious
        return wrappedCursor.moveToNext();
    } 
 
    @Implementation 
    public boolean moveToPrevious() { 
        return wrappedCursor.moveToPrevious();
    } 
 
    @Implementation 
    public boolean isFirst() { 
        return wrappedCursor.isFirst();
    } 
 
    @Implementation 
    public boolean isLast() { 
        return wrappedCursor.isLast();
    } 
 
    @Implementation 
    public boolean isBeforeFirst() { 
6
CodeRank
Connect your IDE to all the code out there  Get Codota for Java
This code example shows how to use the following methods:getPosition, moveToPrevious
	 * @param newPosition 
	 */ 
	private void onMove(int oldPosition, int newPosition)
	{ 
		if (oldPosition != newPosition || mCurrentEntity == null){
			mCurrentEntity = new Entity(mTableName, mCursor);
		} 
	} 
	 
	/** 
	 * Devuelve la entidad en curso.  
	 *  
	 * @return 
	 */ 
	public Entity getEntity() 
	{ 
		return mCurrentEntity; 
	} 
 
	/** 

6
CodeRank
Connect your IDE to all the code out there  Get Codota for Java
This code example shows how to use the following methods:moveToPrevious
	public boolean last() { 
		return cursor.moveToLast();
	} 
 
	public boolean previous() { 
		return cursor.moveToPrevious();
	} 
 
	public boolean moveRelative(int offset) {
		return cursor.move(offset);
	} 
 
	public boolean moveAbsolute(int position) {
		return cursor.moveToPosition(position);
	} 
 
	/** 
	 * Returns the count of results from the cursor. 
	 */ 
	public int getCount() { 
5
CodeRank
Connect your IDE to all the code out there  Get Codota for Java
This code example shows how to use the following methods:moveToPrevious
	return cursor.moveToNext();
    } 
 
    @Implementation 
    public boolean moveToPrevious() { 
	return cursor.moveToPrevious();
    } 
 
    @Implementation 
    public boolean isFirst() { 
	return cursor.isFirst();
    } 
 
    @Implementation 
    public boolean isLast() { 
	return cursor.isLast();
    } 
 
    @Implementation 
    public boolean isBeforeFirst() { 
5
CodeRank
Connect your IDE to all the code out there  Get Codota for Java
This code example shows how to use the following methods:getPosition, moveToPrevious
		firstNext = true;
		mc.moveToFirst();
	} 
	 
	public int index(){ 
		return mc.getPosition();
	} 
	 
	public boolean prev(){ 
		if (index() <= 0) return false; 
		mc.moveToPrevious();
		return true; 
	} 
	 
	boolean firstNext = true;
	public boolean next(){ 
		if (AFCursor.invalid(this)) return false;
		if (failure) return false;
		 
		if (firstNext){
5
CodeRank
Connect your IDE to all the code out there  Get Codota for Java
This code example shows how to use the following methods:isFirst, moveToPrevious
    /** 
     * @return true if the message set to {@link #moveTo} has an newer message in the mailbox. 
     * false otherwise, or unknown yet. 
     */ 
    public boolean canMoveToNewer() { 
        return (mCursor != null) && !mCursor.isFirst();
    } 
 
    /** 
     * Move to the older message. 
     * 
     * @return true iif succeed, and {@link Callback#onMessagesChanged} is called. 
     */ 
    public boolean moveToOlder() { 
        if (canMoveToOlder() && mCursor.moveToNext()) {
            mCurrentPosition++;
            setCurrentMessageIdFromCursor(); 
            mCallback.onMessagesChanged();
            return true; 
        } else { 

5
CodeRank
Connect your IDE to all the code out there  Get Codota for Java
This code example shows how to use the following methods:moveToPrevious
	public boolean moveToPosition(int position) {
		return internalCursor.moveToPosition(position);
	} 
 
	public boolean moveToPrevious() { 
		return internalCursor.moveToPrevious();
	} 
 
	public boolean onMove(int oldPosition, int newPosition) {
		return internalCursor.onMove(oldPosition, newPosition);
	} 
 
	public void registerContentObserver(ContentObserver observer) {
		internalCursor.registerContentObserver(observer);
	} 
 
	public void registerDataSetObserver(DataSetObserver observer) {
		internalCursor.registerDataSetObserver(observer);
	} 
 
4
CodeRank
Connect your IDE to all the code out there  Get Codota for Java
This code example shows how to use the following methods:moveToPrevious
   public boolean moveToPosition(int position) {
      return internalCursor.moveToPosition(position);
   } 
 
   public boolean moveToPrevious() { 
      return internalCursor.moveToPrevious();
   } 
 
   public void registerContentObserver(ContentObserver observer) {
      internalCursor.registerContentObserver(observer);
   } 
 
   public void registerDataSetObserver(DataSetObserver observer) {
      internalCursor.registerDataSetObserver(observer);
   } 
 
   public boolean requery() { 
      return internalCursor.requery();
   } 
 
4
CodeRank
Connect your IDE to all the code out there  Get Codota for Java

Related Cursor moveToPrevious Questions & Answers:

moveToPrevious Method Overview
Move the cursor to the previous row.
See Code Examples for other Android Cursor Methods: