Example usage for android.telecom Connection setAddress

List of usage examples for android.telecom Connection setAddress

Introduction

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

Prototype

public final void setAddress(Uri address, int presentation) 

Source Link

Document

Sets the value of the #getAddress() property.

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);
    }/*  www  .j  a v  a  2s .c  o m*/
}