Skip to content

Commit 09da960

Browse files
committed
docs: fix code snippet errors
Change-Id: Ie0ef6d4e642b6f9a68bdadd3e507f9fe2dd323d9
1 parent 5249ad0 commit 09da960

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

docs/html/guide/topics/providers/content-providers.jd

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -838,8 +838,8 @@ For example if the ContentProvider subclass is AutoInfoProvider, the
838838
</p>
839839

840840
<pre>
841-
&lt;provider name="com.example.autos.AutoInfoProvider"
842-
authorities="com.example.autos.autoinfoprovider"
841+
&lt;provider android:name="com.example.autos.AutoInfoProvider"
842+
android:authorities="com.example.autos.autoinfoprovider"
843843
. . . /&gt
844844
&lt;/provider&gt;
845845
</pre>
@@ -891,8 +891,8 @@ For third-party applications, this should be a fully-qualified class name
891891
(reduced to lowercase) to ensure uniqueness. The authority is declared in
892892
the {@code &lt;provider&gt;} element's {@code authorities} attribute:</p>
893893

894-
<pre>&lt;provider name=".TransportationProvider"
895-
authorities="com.example.transportationprovider"
894+
<pre>&lt;provider android:name=".TransportationProvider"
895+
android:authorities="com.example.transportationprovider"
896896
. . . &gt;</pre></li>
897897

898898
<li><p>The path that the content provider uses to determine what kind of data is

0 commit comments

Comments
 (0)