Skip to content

Commit 53b0fda

Browse files
committed
misc doc bugs.
Fix sdk samples path Fix method signature in fragment doc code snippet Fix typo in a11y javadoc code snippet Fix markup error in brands page Fix markup error on content providers doc Fix typo on about>start page Change-Id: Ie2a528dd4fbd19e5cb1c0844f6fc6272669c8ab9
1 parent 41508f0 commit 53b0fda

File tree

6 files changed

+19
-18
lines changed

6 files changed

+19
-18
lines changed

core/java/android/accessibilityservice/AccessibilityService.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@
6666
* accessibility service. Following is an example declaration:
6767
* </p>
6868
* <pre> &lt;service android:name=".MyAccessibilityService"
69-
* android:permission="android.permission.BIND_ACCESSIBILITY_SERVICE&gt;
69+
* android:permission="android.permission.BIND_ACCESSIBILITY_SERVICE"&gt;
7070
* &lt;intent-filter&gt;
7171
* &lt;action android:name="android.accessibilityservice.AccessibilityService" /&gt;
7272
* &lt;/intent-filter&gt;

docs/html/about/start.jd

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,9 +29,9 @@ h2.green+hr{background:#99CC00}
2929
<p>Before you write a single line of code, you need to design the user interface and make it fit
3030
the Android user experience. Although you may know what a user will <em>do</em> with your app, you
3131
should pause to focus on how a user will <em>interact</em> with it. Your design should be sleek,
32-
simple, powereful, and tailored to the Android experience.</p>
32+
simple, powerful, and tailored to the Android experience.</p>
3333

34-
<p>So whether your a one-man shop or a large team, you should study the <a
34+
<p>So whether you're a one-man shop or a large team, you should study the <a
3535
href="{@docRoot}design/index.html">Design</a> guidelines first.</p>
3636
</div>
3737

docs/html/distribute/googleplay/promote/brand.jd

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ any way you want, provided that you follow the guidelines described below.</p>
150150
<span style="margin-left:1em;">http://play.google.com/store/search?q=<em>yourCompanyName</em></span>
151151
</li>
152152
<li>A list of products published by you, for example,<br />
153-
<span style="margin-left:1em;">http://play.google.com/store/search?q=<em>publisherName</em>M/span>
153+
<span style="margin-left:1em;">http://play.google.com/store/search?q=<em>publisherName</em></span>
154154
</li>
155155
<li>A specific app product details page within Google Play, for example,<br />
156156
<span style="margin-left:1em;">http://play.google.com/store/apps/details?id=<em>packageName</em></span>
@@ -171,4 +171,4 @@ any way you want, provided that you follow the guidelines described below.</p>
171171
<h2>Other Brands</h2>
172172

173173
<p>Any other brands or icons depicted on this site are <em>not</em> are the property of their
174-
repective owners and usage is reserved. You must seek the developer for appropriate permission to use them.</p>
174+
respective owners and usage is reserved. You must seek the developer for appropriate permission to use them.</p>

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

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1030,12 +1030,12 @@ mRowsDeleted = getContentResolver().delete(
10301030
A provider defines URI permissions for content URIs in its manifest, using the
10311031
<code><a href="{@docRoot}guide/topics/manifest/provider-element.html#gprmsn">
10321032
android:grantUriPermission</a></code>
1033-
attribute of the
1034-
{@code <a href="{@docRoot}guide/topics/manifest/provider-element.html">&lt;provider&gt;</a>}
1033+
attribute of the <a href="{@docRoot}guide/topics/manifest/provider-element.html">
1034+
{@code &lt;provider&gt;}</a>
10351035
element, as well as the
1036-
{@code <a href="{@docRoot}guide/topics/manifest/grant-uri-permission-element.html">
1037-
&lt;grant-uri-permission&gt;</a>} child element of the
1038-
{@code <a href="{@docRoot}guide/topics/manifest/provider-element.html">&lt;provider&gt;</a>}
1036+
<a href="{@docRoot}guide/topics/manifest/grant-uri-permission-element.html">{@code
1037+
&lt;grant-uri-permission&gt;}</a> child element of the
1038+
<a href="{@docRoot}guide/topics/manifest/provider-element.html">{@code &lt;provider&gt;}</a>
10391039
element. The URI permissions mechanism is explained in more detail in the
10401040
<a href="{@docRoot}guide/topics/security/security.html">Security and Permissions</a> guide,
10411041
in the section "URI Permissions".

docs/html/tools/samples/index.jd

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,8 @@ page.title=Samples
33
@jd:body
44

55
<p>To help you understand some fundamental Android APIs and coding practices, a variety of sample
6-
code is available from the Android SDK Manager.</p>
6+
code is available from the Android SDK Manager. Each version of the Android platform available
7+
from the SDK Manager offers its own set of sample apps.</p>
78

89
<p>To download the samples:</p>
910
<ol>
@@ -18,14 +19,14 @@ Android SDK, then execute {@code android sdk}.</ul>
1819
<li>Select and download <em>Samples for SDK</em>.</li>
1920
</ol>
2021

21-
<p>When the download is complete, you can find the samples sources at this location:</p>
22+
<p>When the download is complete, you can find the source code for all samples at this location:</p>
2223

2324
<p style="margin-left:2em">
24-
<code><em>&lt;sdk&gt;</em>/platforms/&lt;android-version>/samples/</code>
25+
<code>&lt;sdk&gt;/samples/android-&lt;version>/</code>
2526
</p>
2627

28+
<p>The {@code &lt;version>} number corresponds to the platform's
29+
<a href="{@docRoot}guide/topics/manifest/uses-sdk-element.html#ApiLevels">API level</a>.</p>
30+
2731
<p>You can easily create new Android projects with the downloaded samples, modify them
28-
if you'd like, and then run them on an emulator or device. </p>
29-
<!--
30-
<p>Below are summaries for several of the available samples.</p>
31-
-->
32+
if you'd like, and then run them on an emulator or device.</p>

docs/html/training/basics/fragments/communicating.jd

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ public static class MainActivity extends Activity
108108
implements HeadlinesFragment.OnHeadlineSelectedListener{
109109
...
110110

111-
public void onArticleSelected(Uri articleUri) {
111+
public void onArticleSelected(int position) {
112112
// The user selected the headline of an article from the HeadlinesFragment
113113
// Do something here to display that article
114114
}

0 commit comments

Comments
 (0)