APISonar


android.provider.Telephony.TextBasedSmsColumns.DATE

> android > provider > Telephony > TextBasedSmsColumns > DATE
android APIs provider APIs Telephony APIs TextBasedSmsColumns APIs DATE APIs

Example 1
private Query getQueryForSMS(@Nullable ContactGroupIds groupIds, int max) {
        return new Query(Consts.SMS_PROVIDER,
            null,
            String.format(Locale.ENGLISH,
                "%s > ? AND %s <> ? %s",
                    Telephony.TextBasedSmsColumns.DATE,
                    Telephony.TextBasedSmsColumns.TYPE,
                    groupSelection(SMS, groupIds)).trim(),
            new String[] {
                String.valueOf(preferences.getMaxSyncedDate(SMS)),
                String.valueOf(Telephony.TextBasedSmsColumns.MESSAGE_TYPE_DRAFT)
            },
            max);
    }
Example 2
private void setSmsHeaders(Message message, Map<String,String> msgMap) throws MessagingException {
        message.setHeader(Headers.ID, msgMap.get(Telephony.BaseMmsColumns._ID));
        message.setHeader(Headers.TYPE, msgMap.get(Telephony.TextBasedSmsColumns.TYPE));
        message.setHeader(Headers.DATE, msgMap.get(Telephony.TextBasedSmsColumns.DATE));
        message.setHeader(Headers.THREAD_ID, msgMap.get(Telephony.TextBasedSmsColumns.THREAD_ID));
        message.setHeader(Headers.READ, msgMap.get(Telephony.TextBasedSmsColumns.READ));
        message.setHeader(Headers.STATUS, msgMap.get(Telephony.TextBasedSmsColumns.STATUS));
        message.setHeader(Headers.PROTOCOL, msgMap.get(Telephony.TextBasedSmsColumns.PROTOCOL));
        message.setHeader(Headers.SERVICE_CENTER, msgMap.get(Telephony.TextBasedSmsColumns.SERVICE_CENTER));
    }