Lines Matching defs:content

17 package android.support.v4.content;
22 import android.content.ContentProvider;
23 import android.content.ContentValues;
24 import android.content.Context;
25 import android.content.Intent;
26 import android.content.pm.PackageManager;
27 import android.content.pm.ProviderInfo;
28 import android.content.res.XmlResourceParser;
48 * of files associated with an app by creating a <code>content://</code> {@link Uri} for a file
51 * A content URI allows you to grant read and write access using
53 * a content URI, in order to send the content URI
65 * The increased level of file access security offered by a content URI
79 * Since the default functionality of FileProvider includes content URI generation for files, you
84 * <code>android.support.v4.content.FileProvider</code>. Set the <code>android:authorities</code>
98 * android:name="android.support.v4.content.FileProvider"
112 * A FileProvider can only generate a content URI for files in directories that you specify
116 * request content URIs for the <code>images/</code> subdirectory of your private file area.
182 * files for which you want content URIs. For example, these XML elements specify two directories:
201 * android:name="android.support.v4.content.FileProvider"
212 * To share a file with another app using a content URI, your app has to generate the content URI.
213 * To generate the content URI, create a new {@link File} for the file, then pass the {@link File}
214 * to {@link #getUriForFile(Context, String, File) getUriForFile()}. You can send the content URI
216 * {@link android.content.Intent}. The client app that receives the content URI can open the file
218 * {@link android.content.ContentResolver#openFileDescriptor(Uri, String)
222 * authority <code>com.mydomain.fileprovider</code>. To get a content URI for the file
231 * {@link #getUriForFile(Context, String, File) getUriForFile()} returns the content URI
232 * <code>content://com.mydomain.fileprovider/my_images/default_image.jpg</code>.
234 * To grant an access permission to a content URI returned from
240 * Context.grantUriPermission(package, Uri, mode_flags)} for the <code>content://</code>
242 * content URI to the specified package, according to the value of the
250 * Put the content URI in an {@link Intent} by calling {@link Intent#setData(Uri) setData()}.
260 * {@link android.app.Activity#setResult(int, android.content.Intent) setResult()}.
271 * There are a variety of ways to serve the content URI for a file to a client app. One common way
275 * In response, your app can immediately return a content URI to the client app or present a user
277 * your app can return its content URI. In both cases, your app returns the content URI in an
281 * You can also put the content URI in a {@link android.content.ClipData} object and then add the
284 * add multiple {@link android.content.ClipData} objects to the {@link Intent}, each with its own
285 * content URI. When you call {@link Intent#setFlags(int) Intent.setFlags()} on the {@link Intent}
286 * to set temporary access permissions, the same permissions are applied to all of the content
292 * compatibility with previous versions, you should send one content URI at a time in the
356 * Return a content URI for a given {@link File}. Specific temporary
357 * permissions for the content URI can be set with
363 * <code>content</code> {@link Uri} for file paths defined in their <code>&lt;paths&gt;</code>
370 * <code>content</code> {@link Uri}.
371 * @return A content URI for the file.
381 * Use a content URI returned by
393 * @param uri A content URI returned by {@link #getUriForFile}.
396 * @param selection Selection criteria to apply. If null then all data that matches the content
440 * Returns the MIME type of a content URI returned by
443 * @param uri A content URI returned by
484 * Deletes the file associated with the specified content URI, as
488 * @param uri A content URI for a file, as returned by
503 * {@link ParcelFileDescriptor} for a file associated with a <code>content://</code>
505 * {@link android.content.ContentResolver#openFileDescriptor(Uri, String)
510 * @param uri A content URI associated with a file, as returned by
628 * {@code content://myauthority/myfiles/foo.txt}.
692 return new Uri.Builder().scheme("content")