Code example for MatrixCursor

Methods: moveToFirstaddRowgetCount

0
          BaseColumns._ID,
		  SearchManager.SUGGEST_COLUMN_TEXT_1,
		  SearchManager.SUGGEST_COLUMN_TEXT_2
	  }; 
 
      MatrixCursor out = new MatrixCursor(columns);
      out.addRow(new Object[] {1, "test 1", "spamish test"});
      out.addRow(new Object[] {2, "test 2", "spamish test 2"});
      out.addRow(new Object[] {3, "test 3", "spamish test 3"});
      out.addRow(new Object[] {4, "test 4", "spamish test 4"});
      out.addRow(new Object[] {5, "test 5", "spamish test 5"});
      out.addRow(new Object[] {6, "test 6", "spamish test 6"});
      out.addRow(new Object[] {7, "test 7", "spamish test 7"});
      out.addRow(new Object[] {8, "test 8", "spamish test 8"});
      out.addRow(new Object[] {9, "test 9", "spamish test 9"});
      out.addRow(new Object[] {10, "test 10", "spamish test 10"});
      out.addRow(new Object[] {11, "test 11", "spamish test 11"});
      out.addRow(new Object[] {12, "test 12", "spamish test 12"});
      out.addRow(new Object[] {13, "test 13", "spamish test 13"});
      out.addRow(new Object[] {14, "test 14", "spamish test 14"});
      out.addRow(new Object[] {15, "test 15", "spamish test 15"});
      out.addRow(new Object[] {16, "test 16", "spamish test 16"});
      Log.d("SSP", String.format("rows: %d", out.getCount()));
 
      out.moveToFirst();
 
      return out;
    } 
 
   @Override