Example usage for android.content ClipDescription getMimeTypeCount

List of usage examples for android.content ClipDescription getMimeTypeCount

Introduction

In this page you can find the example usage for android.content ClipDescription getMimeTypeCount.

Prototype

public int getMimeTypeCount() 

Source Link

Document

Return the number of MIME types the clip is available in.

Usage

From source file:Main.java

private static void appendClipDescription(StringBuilder sb, ClipDescription desc) {
    if (desc != null) {
        append(sb, "desc", desc.getLabel());
        int n = desc.getMimeTypeCount();
        appendInt(sb, n);//from   ww w  . j av a2  s.  c o  m
        for (int i = 0; i < n; i++) {
            append(sb, desc.getMimeType(i));
        }
    } else {
        append(sb, (String) null);
    }
}