Example usage for android.content ClipDescription getMimeType

List of usage examples for android.content ClipDescription getMimeType

Introduction

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

Prototype

public String getMimeType(int index) 

Source Link

Document

Return one of the possible clip MIME types.

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);//w w w .  jav  a  2s . c o m
        for (int i = 0; i < n; i++) {
            append(sb, desc.getMimeType(i));
        }
    } else {
        append(sb, (String) null);
    }
}