obtain

public static FileMessage obtain(Context context, Uri url)

Generates a FileMessage object. This method supports file and content protocol headers.

Parameters

context

The context.

url

The file URL.


@Deprecated()
public static FileMessage obtain(Uri url)

Deprecated

Parameters

url

The file URL. @Deprecated Generates a FileMessage object. This method only supports local File format. To support content, use obtain