Example usage for android.telecom Connection setCallerDisplayName

List of usage examples for android.telecom Connection setCallerDisplayName

Introduction

In this page you can find the example usage for android.telecom Connection setCallerDisplayName.

Prototype

public final void setCallerDisplayName(String callerDisplayName, int presentation) 

Source Link

Document

Sets the caller display name (CNAP).

Usage

From source file:com.android.server.telecom.testapps.TestConnectionService.java

private void setAddress(Connection connection, Uri address) {
    connection.setAddress(address, TelecomManager.PRESENTATION_ALLOWED);
    if ("5551234".equals(address.getSchemeSpecificPart())) {
        connection.setCallerDisplayName("Hello World", TelecomManager.PRESENTATION_ALLOWED);
    }//from w w w. java2  s .co  m
}