首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 移动开发 > 移动开发 >

MatrixCursor跟MergeCursor

2013-07-16 
MatrixCursor和MergeCursorCursor c0 MailboxList.this.managedQuery(EmailContent.Mailbox.CONTENT_URI

MatrixCursor和MergeCursor
Cursor c0 = MailboxList.this.managedQuery( EmailContent.Mailbox.CONTENT_URI, MailboxList.this.mListAdapter.PROJECTION, MAILBOX_SELECTION0, new String[] { String.valueOf(mAccountKey) }, MailboxColumns.TYPE); Cursor c1 = MailboxList.this.managedQuery( EmailContent.Mailbox.CONTENT_URI, MailboxList.this.mListAdapter.PROJECTION, MAILBOX_SELECTION, new String[] { String.valueOf(mAccountKey) }, MailboxColumns.TYPE/* + "," + MailboxColumns.DISPLAY_NAME*/); Cursor c2 = MailboxList.this.managedQuery( EmailContent.Mailbox.CONTENT_URI, MailboxList.this.mListAdapter.PROJECTION, MAILBOX_SELECTION1, new String[] { String.valueOf(mAccountKey) }, MailboxColumns.TYPE/* + "," + MailboxColumns.DISPLAY_NAME*/); Cursor[] cursors = new Cursor[] { c0, c1, c2 }; Cursor c = new MergeCursor(cursors);

热点排行