YAACC - UPNP Client and Server
Loading...
Searching...
No Matches
de.yaacc.share.ProviderProbe Class Reference

Asks the content provider of a shared file for its MIME type and its display name. More...

Collaboration diagram for de.yaacc.share.ProviderProbe:
Collaboration graph

Classes

class  Info
 What the provider said; every field may be null.
 

Static Public Member Functions

static Info query (ContentResolver resolver, Uri uri)
 Never throws; a failing provider is a null field.
 

Detailed Description

Asks the content provider of a shared file for its MIME type and its display name.

Both answers are untrusted text from another app: the type goes through SharedContentPolicy.chooseMimeType, the name through DisplayName.forShare.

These are Binder calls into another process and can block for ever: call only on a worker thread, through de.yaacc.share.BoundedCall, never on the main thread.


The documentation for this class was generated from the following file: