public Cursor getImages(long rowId) throws SQLException { Cursor mCursor = db.rawQuery(\"select * from Pictures WHERE id=\" + rowId + \";
simply use moveToNext in your loop to iterate.
moveToNext
while(ct.moveToNext()){ pictures[i]=c1.getString(1); comments[i]=c1.getString(2); i++; }