Example usage for android.os IBinder toString

List of usage examples for android.os IBinder toString

Introduction

In this page you can find the example usage for android.os IBinder toString.

Prototype

public String toString() 

Source Link

Document

Returns a string representation of the object.

Usage

From source file:com.stephenmcgruer.simpleupnp.fragments.FileBrowserFragment.java

@Override
public void onServiceConnected(ComponentName name, IBinder service) {
    Log.d(TAG, "onServiceConnected: " + name.flattenToShortString() + ", " + service.toString());

    mUpnpService = (AndroidUpnpService) service;

    Device device = mUpnpService.getRegistry().getDevice(new UDN(mDeviceUdn), false);
    mContentDirectoryService = device.findService(new UDAServiceType("ContentDirectory"));
    if (mContentDirectoryService == null) {
        throw new IllegalStateException("Unable to find ContentDirectory service for device " + mDeviceUdn);
    }/*from  w  w  w. ja v  a 2s. c o  m*/
    mDeviceName = (device.getDetails() != null && device.getDetails().getFriendlyName() != null)
            ? device.getDetails().getFriendlyName()
            : device.getDisplayString();

    selectContainer(mCurrentContainer);
}