ContactsContract.CommonDataKinds.StructuredPostal.InterfaceConsts.PreferredPhoneAccountId Field

Definition

The ID of a android.telecom.PhoneAccountHandle that is the preferred PhoneAccountHandle to call the contact with.

[Android.Runtime.Register("PREFERRED_PHONE_ACCOUNT_ID", ApiSince=28)]
public const string PreferredPhoneAccountId;
[<Android.Runtime.Register("PREFERRED_PHONE_ACCOUNT_ID", ApiSince=28)>]
val mutable PreferredPhoneAccountId : string

Field Value

Attributes

Remarks

The ID of a android.telecom.PhoneAccountHandle that is the preferred PhoneAccountHandle to call the contact with. Used by CommonDataKinds.Phone.

On a multi-SIM device this field can be used in a CommonDataKinds.Phone row to indicate the PhoneAccountHandle to call the number with, instead of using android.telecom.TelecomManager#getDefaultOutgoingPhoneAccount(String) or asking every time.

android.telecom.TelecomManager#placeCall(Uri, android.os.Bundle) should be called with android.telecom.TelecomManager#EXTRA_PHONE_ACCOUNT_HANDLE set to the PhoneAccountHandle using the id from this field.

Java documentation for android.provider.ContactsContract.DataColumns.PREFERRED_PHONE_ACCOUNT_ID.

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to