Lines Matching full:code
49 <code><a href="{@docRoot}guide/topics/manifest/provider-element.html"
50 ><provider></a></code> element that specifies the
72 In this example, the <code><a href="{@docRoot}guide/topics/manifest/provider-element.html#auth"
73 >android:authorities</a></code> attribute specifies the URI authority
76 In the example, the authority is <code>com.example.myapp.fileprovider</code>. For your own
78 <code><a href="{@docRoot}guide/topics/manifest/manifest-element.html#package"
79 >android:package</a></code> value with the string "fileprovider" appended to it. To learn more
83 <code><a href="{@docRoot}guide/topics/manifest/provider-element.html#auth"
84 >android:authorities</a></code> attribute.
87 The <code><a href="{@docRoot}guide/topics/manifest/meta-data-element.html"
88 ><meta-data></a></code> child element of the
89 <code><a href="{@docRoot}guide/topics/manifest/provider-element.html"
90 ><provider></a></code> points to an XML file that specifies the directories you want to
91 share. The <code>android:resource</code> attribute is the path and name of the file, without
92 the <code>.xml</code> extension.The contents of this file are described in the next section.
98 directories, start by creating the file <code>filepaths.xml</code> in the <code>res/xml/</code>
101 <code>res/xml/filepaths.xml</code>. The snippet also demonstrates how to share a subdirectory
102 of the <code>files/</code> directory in your internal storage area:
109 In this example, the <code><files-path></code> tag shares directories within the
110 <code>files/</code> directory of your app's internal storage. The <code>path</code> attribute
111 shares the <code>images/</code> subdirectory of <code>files/</code>. The <code>name</code>
113 <code>myimages</code> to content URIs for files in the <code>files/images/</code> subdirectory.
116 The <code><paths></code> element can have multiple children, each specifying a different
117 directory to share. In addition to the <code><files-path></code> element, you can
118 use the <code><external-path></code> element to share directories in external storage, and
119 the <code><cache-path></code> element to share directories in your internal cache
129 that generates content URIs for files in the <code>files/</code> directory of your app's
130 internal storage or for files in subdirectories of <code>files/</code>. When your app generates
132 <code><a href="{@docRoot}guide/topics/manifest/provider-element.html"
133 ><provider></a></code> element (<code>com.example.myapp.fileprovider</code>),
134 the path <code>myimages/</code>, and the name of the file.
139 <code>default_image.jpg</code>, {@link android.support.v4.content.FileProvider} returns the