Code example for Cursor

Methods: getCount

0
    this.cursor = cursor;
  } 
 
  @Override 
  public int getCount() { 
    return cursor.getCount();
  } 
 
  @Override 
  public Object getItem(int index) {
    // Not used, so no point in retrieving it. 
    return null; 
  } 
 
  @Override 
  public long getItemId(int index) {
    return index;
  } 
 
  @Override 
  public View getView(int index, View view, ViewGroup viewGroup) {