Example usage for android.media UnsupportedSchemeException printStackTrace

List of usage examples for android.media UnsupportedSchemeException printStackTrace

Introduction

In this page you can find the example usage for android.media UnsupportedSchemeException printStackTrace.

Prototype

public void printStackTrace() 

Source Link

Document

Prints this throwable and its backtrace to the standard error stream.

Usage

From source file:mtmo.test.mediadrm.MainActivity.java

private void checkMarlinPluginInfo() {
    try {/*from w w  w  .jav  a2  s .co  m*/
        MediaDrm mediaDrm = new MediaDrm(Constants.MBB_UUID);
        String duid = mediaDrm.getPropertyString(Constants.QUERY_NAME_DUID);
        mLogger.d("duid: " + duid);
    } catch (UnsupportedSchemeException e) {
        Toast.makeText(MainActivity.this, "Unsupported Scheme", Toast.LENGTH_LONG).show();
        e.printStackTrace();
    } catch (IllegalArgumentException e) {
        e.printStackTrace();
    }
    return;
}