private Cursor getItemsToSync() { |
ContentResolver r = getContentResolver(); |
String selection = String.format("%s > ? AND %s <> ?", |
SmsConsts.DATE, SmsConsts.TYPE); |
String[] selectionArgs = new String[] { |
String.valueOf(getMaxSyncedDate()), String.valueOf(SmsConsts.MESSAGE_TYPE_DRAFT) |
}; |
String sortOrder = SmsConsts.DATE; |
return r.query(Uri.parse("content://sms"), null, selection, selectionArgs, sortOrder); |
} |
댓글 없음:
댓글 쓰기