Skip to content

Commit eb1d42e

Browse files
scottamainAndroid (Google) Code Review
authored andcommitted
Merge "docs: Fix a bunch of misc doc issues from external tracker" into ics-mr1
2 parents 33ace97 + 8edad6f commit eb1d42e

File tree

15 files changed

+49
-51
lines changed

15 files changed

+49
-51
lines changed

core/java/android/hardware/GeomagneticField.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
import java.util.GregorianCalendar;
2020

2121
/**
22-
* This class is used to estimated estimate magnetic field at a given point on
22+
* Estimates magnetic field at a given point on
2323
* Earth, and in particular, to compute the magnetic declination from true
2424
* north.
2525
*

docs/html/guide/developing/device.jd

Lines changed: 23 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -134,47 +134,47 @@ above.</p>
134134
</tr>
135135
<tr>
136136
<td>ASUS</td>
137-
<td><code>0B05</code></td>
137+
<td><code>0b05</code></td>
138138
</tr>
139139
<tr>
140140
<td>Dell</td>
141-
<td><code>413C</code></td>
141+
<td><code>413c</code></td>
142142
</tr>
143143
<tr>
144144
<td>Foxconn</td>
145145
<td><code>0489</code></td>
146146
</tr>
147147
<tr>
148148
<td>Fujitsu</td>
149-
<td><code>04C5</code></td>
149+
<td><code>04c5</code></td>
150150
</tr>
151151
<tr>
152152
<td>Fujitsu Toshiba</td>
153-
<td><code>04C5</code></td>
153+
<td><code>04c5</code></td>
154154
</tr>
155155
<tr>
156156
<td>Garmin-Asus</td>
157-
<td><code>091E</code></td>
157+
<td><code>091e</code></td>
158158
</tr>
159159
<tr>
160160
<td>Google</td>
161-
<td><code>18D1</code></td>
161+
<td><code>18d1</code></td>
162162
</tr>
163163
<tr>
164164
<td>Hisense</td>
165-
<td><code>109B</code></td>
165+
<td><code>109b</code></td>
166166
</tr>
167167
<tr>
168168
<td>HTC</td>
169-
<td><code>0BB4</code></td>
169+
<td><code>0bb4</code></td>
170170
</tr>
171171
<tr>
172172
<td>Huawei</td>
173-
<td><code>12D1</code></td>
173+
<td><code>12d1</code></td>
174174
</tr>
175175
<tr>
176176
<td>K-Touch</td>
177-
<td><code>24E3</code></td>
177+
<td><code>24e3</code></td>
178178
</tr>
179179
<tr>
180180
<td>KT Tech</td>
@@ -185,16 +185,16 @@ above.</p>
185185
<td><code>0482</code></td>
186186
</tr>
187187
<tr>
188-
<td>Lenevo</td>
189-
<td><code>17EF</code></td>
188+
<td>Lenovo</td>
189+
<td><code>17ef</code></td>
190190
</tr>
191191
<tr>
192192
<td>LG</td>
193193
<td><code>1004</code></td>
194194
</tr>
195195
<tr>
196196
<td>Motorola</td>
197-
<td><code>22B8</code></td>
197+
<td><code>22b8</code></td>
198198
</tr>
199199
<tr>
200200
<td>NEC</td>
@@ -214,43 +214,43 @@ above.</p>
214214
</tr>
215215
<tr>
216216
<td>Pantech</td>
217-
<td><code>10A9</code></td>
217+
<td><code>10a9</code></td>
218218
</tr>
219219
<tr>
220220
<td>Pegatron</td>
221-
<td><code>1D4D</code></td>
221+
<td><code>1d4d</code></td>
222222
</tr>
223223
<tr>
224224
<td>Philips</td>
225225
<td><code>0471</code></td>
226226
</tr>
227227
<tr>
228228
<td>PMC-Sierra</td>
229-
<td><code>04DA</code></td>
229+
<td><code>04da</code></td>
230230
</tr>
231231
<tr>
232232
<td>Qualcomm</td>
233-
<td><code>05C6</code></td>
233+
<td><code>05c6</code></td>
234234
</tr>
235235
<tr>
236236
<td>SK Telesys</td>
237-
<td><code>1F53</code></td>
237+
<td><code>1f53</code></td>
238238
</tr>
239239
<tr>
240240
<td>Samsung</td>
241-
<td><code>04E8</code></td>
241+
<td><code>04e8</code></td>
242242
</tr>
243243
<tr>
244244
<td>Sharp</td>
245-
<td><code>04DD</code></td>
245+
<td><code>04dd</code></td>
246246
</tr>
247247
<tr>
248248
<td>Sony</td>
249-
<td><code>054C</code></td>
249+
<td><code>054c</code></td>
250250
</tr>
251251
<tr>
252252
<td>Sony Ericsson</td>
253-
<td><code>0FCE</code></td>
253+
<td><code>0fce</code></td>
254254
</tr>
255255
<tr>
256256
<td>Teleepoch</td>
@@ -262,6 +262,6 @@ above.</p>
262262
</tr>
263263
<tr>
264264
<td>ZTE</td>
265-
<td><code>19D2</code></td>
265+
<td><code>19d2</code></td>
266266
</tr>
267267
</table>

docs/html/guide/developing/tools/monkeyrunner_concepts.jd

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -236,7 +236,7 @@ Table 1 explains the flags and arguments.
236236
You can generate an API reference for monkeyrunner by running:
237237
</p>
238238
<pre>
239-
monkeyrunner &lt;format&gt; help.py &lt;outfile&gt;
239+
monkeyrunner help.py &lt;format&gt; &lt;outfile&gt;
240240
</pre>
241241
<p>
242242
The arguments are:

docs/html/guide/market/expansion-files.jd

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1088,12 +1088,8 @@ android.content.res.AssetFileDescriptor}, such as some {@link android.media.Medi
10881088
<dd>Most applications don't need to use this class. This class defines a {@link
10891089
android.content.ContentProvider} that marshals the data from the ZIP files through a content
10901090
provider {@link android.net.Uri} in order to provide file access for certain Android APIs that
1091-
expect {@link android.net.Uri} access to media files.
1092-
<p>The sample application available in the
1093-
Apk Expansion package demonstrates a scenario in which this class is useful
1094-
to specify a video with {@link android.widget.VideoView#setVideoURI
1095-
VideoView.setVideoURI()}. See the sample app's class {@code SampleZipfileProvider} for an
1096-
example of how to extend this class to use in your application.</p></dd>
1091+
expect {@link android.net.Uri} access to media files. For example, this is useful if you want to
1092+
play a video with {@link android.widget.VideoView#setVideoURI VideoView.setVideoURI()}.</p></dd>
10971093
</dl>
10981094

10991095
<h4>Reading from a ZIP file</h4>

docs/html/guide/topics/fundamentals/tasks-and-back-stack.jd

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@ See the following section about <a href="#ActivityState">Activity state</a>.</p>
154154

155155
<p>Because the activities in the back stack are never rearranged, if your application allows
156156
users to start a particular activity from more than one activity, a new instance of
157-
that activity is created and popped onto the stack (rather than bringing any previous instance of
157+
that activity is created and pushed onto the stack (rather than bringing any previous instance of
158158
the activity to the top). As such, one activity in your application might be instantiated multiple
159159
times (even from different tasks), as shown in figure 3. As such, if the user navigates backward
160160
using the <em>Back</em> button, each instance of the activity is revealed in the order they were
@@ -291,7 +291,7 @@ B should associate with current task. If both activities define how Activity B
291291
should associate with a task, then Activity A's request (as defined in the intent) is honored
292292
over Activity B's request (as defined in its manifest).</p>
293293

294-
<p class="note"><strong>Note:</strong> Some the launch modes available in the manifest
294+
<p class="note"><strong>Note:</strong> Some launch modes available for the manifest file
295295
are not available as flags for an intent and, likewise, some launch modes available as flags
296296
for an intent cannot be defined in the manifest.</p>
297297

docs/html/guide/topics/manifest/manifest-element.jd

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ parent.link=manifest-intro.html
3737
<dt>description:</dt>
3838
<dd>The root element of the AndroidManifest.xml file. It must
3939
contain an <code><a href="{@docRoot}guide/topics/manifest/application-element.html">&lt;application&gt;</a></code> element
40-
and specify {@code xlmns:android} and {@code package} attributes.</dd>
40+
and specify {@code xmlns:android} and {@code package} attributes.</dd>
4141

4242
<dt>attributes:</dt>
4343
<dd>

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ page.title=Content Provider Basics
123123

124124
<!-- Intro paragraphs -->
125125
<p>
126-
A content provider manages access to a central repository of data. The provider and
126+
A content provider manages access to a central repository of data. A provider
127127
is part of an Android application, which often provides its own UI for working with
128128
the data. However, content providers are primarily intended to be used by other
129129
applications, which access the provider using a provider client object. Together, providers
@@ -569,7 +569,7 @@ selectionArgs[0] = mUserInput;
569569
</pre>
570570
<p>
571571
A selection clause that uses <code>?</code> as a replaceable parameter and an array of
572-
selection arguments array are preferred way to specify a selection, even the provider isn't
572+
selection arguments array are preferred way to specify a selection, even if the provider isn't
573573
based on an SQL database.
574574
</p>
575575
<!-- Displaying the results -->

docs/html/guide/topics/resources/providing-resources.jd

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -287,9 +287,8 @@ names.</p>
287287
from the SIM card in the device. For example, <code>mcc310</code> is U.S. on any carrier,
288288
<code>mcc310-mnc004</code> is U.S. on Verizon, and <code>mcc208-mnc00</code> is France on
289289
Orange.</p>
290-
<p>If the device uses a radio connection (GSM phone), the MCC comes
291-
from the SIM, and the MNC comes from the network to which the
292-
device is connected.</p>
290+
<p>If the device uses a radio connection (GSM phone), the MCC and MNC values come
291+
from the SIM card.</p>
293292
<p>You can also use the MCC alone (for example, to include country-specific legal
294293
resources in your application). If you need to specify based on the language only, then use the
295294
<em>language and region</em> qualifier instead (discussed next). If you decide to use the MCC and

docs/html/guide/topics/resources/string-resource.jd

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -358,11 +358,14 @@ values, with non-exhaustive examples in parentheses:
358358
<pre>
359359
int count = getNumberOfsongsAvailable();
360360
Resources res = {@link android.content.Context#getResources()};
361-
String songsFound = res.{@link android.content.res.Resources#getQuantityString(int,int)
362-
getQuantityString}(R.plurals.numberOfSongsAvailable, count, count);
361+
String songsFound = res.<a
362+
href="{@docRoot}reference/android/content/res/Resources.html#getQuantityString(int, int, java.lang.Object...)"
363+
>getQuantityString</a>(R.plurals.numberOfSongsAvailable, count, count);
363364
</pre>
364-
<p>When using the {@link android.content.res.Resources#getQuantityString(int,int)
365-
getQuantityString()} method, you need to pass the {@code count} twice if your string includes
365+
366+
<p>When using the <a
367+
href="{@docRoot}reference/android/content/res/Resources.html#getQuantityString(int, int, java.lang.Object...)">{@code
368+
getQuantityString()}</a> method, you need to pass the {@code count} twice if your string includes
366369
<a href="#FormattingAndStyling">string formatting</a> with a number. For example, for the string
367370
{@code %d songs found}, the first {@code count} parameter selects the appropriate plural string and
368371
the second {@code count} parameter is inserted into the {@code %d} placeholder. If your plural

docs/html/guide/topics/sensors/index.jd

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ device's temperature sensor and humidity sensor to calculate and report the dewp
4343
application might use the geomagnetic field sensor and accelerometer to report a compass
4444
bearing.</p>
4545

46-
<p>The Android platform supports four broad categories of sensors:</p>
46+
<p>The Android platform supports three broad categories of sensors:</p>
4747

4848
<ul>
4949
<li>Motion sensors

0 commit comments

Comments
 (0)