Created
December 12, 2016 17:08
-
-
Save Denis1990/26ce3bf2a2cf9c7fc63b37c7bf6add29 to your computer and use it in GitHub Desktop.
k9uid
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
private static String [] MAIL_LIST_PROJECTIONS = { | |
MessageProvider.MessageColumns._ID, | |
MessageProvider.MessageColumns.SENDER_ADDRESS, | |
MessageProvider.MessageColumns.SENDER, | |
MessageProvider.MessageColumns.SEND_DATE, | |
MessageProvider.MessageColumns.SUBJECT, | |
MessageProvider.MessageColumns.PREVIEW, | |
MessageProvider.MessageColumns.UNREAD, | |
}; | |
Cursor cursor = mContext.getContentResolver().query( | |
MessageProvider.CONTENT_URI.buildUpon().appendPath("inbox_messages").build(), | |
MAIL_LIST_PROJECTIONS, | |
null, | |
null, | |
MessageProvider.MessageColumns.SEND_DATE + "DESC"); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment