Example usage for android.telephony SmsManager MMS_CONFIG_SUPPORT_MMS_CONTENT_DISPOSITION

List of usage examples for android.telephony SmsManager MMS_CONFIG_SUPPORT_MMS_CONTENT_DISPOSITION

Introduction

In this page you can find the example usage for android.telephony SmsManager MMS_CONFIG_SUPPORT_MMS_CONTENT_DISPOSITION.

Prototype

String MMS_CONFIG_SUPPORT_MMS_CONTENT_DISPOSITION

To view the source code for android.telephony SmsManager MMS_CONFIG_SUPPORT_MMS_CONTENT_DISPOSITION.

Click Source Link

Document

Whether content-disposition field should be expected in an MMS PDU (boolean type)

Usage

From source file:Main.java

/**
 * Get the config of whether Content-Disposition header is supported
 * for default carrier using new SmsManager API
 *
 * @return true if supported, false otherwise
 *///w  w  w .  ja v  a 2 s .  c  o m
public static boolean shouldParseContentDisposition() {
    return SmsManager.getDefault().getCarrierConfigValues()
            .getBoolean(SmsManager.MMS_CONFIG_SUPPORT_MMS_CONTENT_DISPOSITION, true);
}