Cursor move - 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 move method.

This code example shows how to use the following methods:move
    return wrappedCursor.getPosition();
  } 
 
  @Implementation 
  public boolean move(int i) {
    return wrappedCursor.move(i);
  } 
 
  @Implementation 
  public boolean moveToPosition(int i) {
    return wrappedCursor.moveToPosition(i);
  } 
 
  @Implementation 
  public boolean moveToFirst() { 
    return wrappedCursor.moveToFirst();
  } 
 
  @Implementation 
  public boolean moveToLast() { 
6
CodeRank
This code example shows how to use the following methods:getInt, move, moveToFirst
		return buildItem(c);
	} 
 
	@Override 
	public long getItemId(int index) {
		c.moveToFirst();
		c.move(index);
		return c.getInt(0);
	} 
 
	public void moveCursor(int index) {
		c.moveToPosition(index);
	} 
 
	public abstract Object buildItem(Cursor c);
} 
6
CodeRank
This code example shows how to use the following methods:move
        return wrappedCursor.getPosition();
    } 
 
    @Implementation 
    public boolean move(int i) {
        return wrappedCursor.move(i);
    } 
 
    @Implementation 
    public boolean moveToPosition(int i) {
        return wrappedCursor.moveToPosition(i);
    } 
 
    @Implementation 
    public boolean moveToFirst() { 
        return wrappedCursor.moveToFirst();
    } 
 
    @Implementation 
    public boolean moveToLast() { 
6
CodeRank
This code example shows how to use the following methods:getPosition, move
	 * @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
This code example shows how to use the following methods:move
	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() { 
		return cursor.getCount();
	} 
 
	/** 
5
CodeRank
This code example shows how to use the following methods:move
	return cursor.getPosition();
    } 
 
    @Implementation 
    public boolean move(int offset) {
	return cursor.move(offset);
    } 
 
    @Implementation 
    public boolean moveToPosition(int position) {
	return cursor.moveToPosition(position);
    } 
 
    @Implementation 
    public boolean moveToFirst() { 
	return cursor.moveToFirst();
    } 
 
    @Implementation 
    public boolean moveToLast() { 
5
CodeRank
This code example shows how to use the following methods:move
	public boolean isNull(int columnIndex) {
		return internalCursor.isNull(columnIndex);
	} 
 
	public boolean move(int offset) {
		return internalCursor.move(offset);
	} 
 
	public boolean moveToFirst() { 
		return internalCursor.moveToFirst();
	} 
 
	public boolean moveToLast() { 
		return internalCursor.moveToLast();
	} 
 
	public boolean moveToNext() { 
		return internalCursor.moveToNext();
	} 
 
4
CodeRank
This code example shows how to use the following methods:move
   public boolean isNull(int columnIndex) {
      return internalCursor.isNull(columnIndex);
   } 
 
   public boolean move(int offset) {
      return internalCursor.move(offset);
   } 
 
   public boolean moveToFirst() { 
      return internalCursor.moveToFirst();
   } 
 
   public boolean moveToLast() { 
      return internalCursor.moveToLast();
   } 
 
   public boolean moveToNext() { 
      return internalCursor.moveToNext();
   } 
 
4
CodeRank

Related Cursor move Questions & Answers:

move Method Overview
Move the cursor by a relative amount, forward or backward, from the current position.
See Code Examples for other Android Cursor Methods: