Lines Matching refs:file
27 Before a client app tries to work with a file for which it has a content URI, the app can
28 request information about the file from the server app, including the file's data type and
29 file size. The data type helps the client app to determine if it can handle the file, and the
30 file size helps the client app set up buffering and caching for the file.
34 {@link android.support.v4.content.FileProvider} to retrieve a file's MIME type and size.
38 A file's data type indicates to the client app how it should handle the file's contents. To get
39 the data type of a shared file given its content URI, the client app calls
41 the file's MIME type. By default, a
42 {@link android.support.v4.content.FileProvider} determines the file's MIME type from its
46 The following code snippet demonstrates how a client app retrieves the MIME type of a file once
52 * Get the file's content URI from the incoming Intent, then
53 * get the file's MIME type
63 name and size of the file associated with a content URI in a
69 The file's name, as a {@link java.lang.String}. This value is the same as the value returned
74 The size of the file in bytes, as a {@code long} This value is the same as the value
80 DISPLAY_NAME} and {@link android.provider.OpenableColumns#SIZE SIZE} for a file by setting all
82 {@code null} except for the content URI. For example, this code snippet retrieves a file's
90 * Get the file's content URI from the incoming Intent,
91 * then query the server app to get the file's display name