Example usage for android.telecom TelecomManager EXTRA_CALL_SUBJECT

List of usage examples for android.telecom TelecomManager EXTRA_CALL_SUBJECT

Introduction

In this page you can find the example usage for android.telecom TelecomManager EXTRA_CALL_SUBJECT.

Prototype

String EXTRA_CALL_SUBJECT

To view the source code for android.telecom TelecomManager EXTRA_CALL_SUBJECT.

Click Source Link

Document

Optional extra for android.content.Intent#ACTION_CALL containing a string call subject which will be associated with an outgoing call.

Usage

From source file:com.mobileglobe.android.customdialer.common.CallUtil.java

/**
 * Return an Intent for making a phone call. Scheme (e.g. tel, sip) will be determined
 * automatically./*w  w w  .  ja  va2 s  .  c o  m*/
 */
@RequiresApi(api = Build.VERSION_CODES.M)
public static Intent getCallWithSubjectIntent(String number, PhoneAccountHandle phoneAccountHandle,
        String callSubject) {

    final Intent intent = getCallIntent(getCallUri(number));
    intent.putExtra(TelecomManager.EXTRA_CALL_SUBJECT, callSubject);
    if (phoneAccountHandle != null) {
        intent.putExtra(TelecomManager.EXTRA_PHONE_ACCOUNT_HANDLE, phoneAccountHandle);
    }
    return intent;
}