Skip to content

Commit b94df62

Browse files
committed
cherrypick Change-Id: I653e91a47979b24e7ecfcbce013c4ffaaa3c55ee
docs: edit manifest samples to indicate <application> element is always last Change-Id: I993d130c26efd87147913d5607a2e7f15bd12fe8
1 parent 2bd83c0 commit b94df62

File tree

12 files changed

+14
-29
lines changed

12 files changed

+14
-29
lines changed

docs/html/guide/appendix/api-levels.jd

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,6 @@ documentation for more information about how the system handles this attribute.<
160160
element might look like this: </p>
161161

162162
<pre>&lt;manifest&gt;
163-
...
164163
&lt;uses-sdk android:minSdkVersion="5" /&gt;
165164
...
166165
&lt;/manifest&gt;</pre>

docs/html/guide/developing/eclipse-adt.jd

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -541,7 +541,6 @@ example library project declares the Activity <code>GameActivity</code>: </p>
541541
&lt;activity android:name="GameActivity" /&gt;
542542
...
543543
&lt;/application&gt;
544-
...
545544
&lt;/manifest&gt;</pre>
546545

547546

@@ -611,7 +610,6 @@ like this: </p>
611610
&lt;activity android:name="com.example.android.tictactoe.library.GameActivity" /&gt;
612611
...
613612
&lt;/application&gt;
614-
...
615613
&lt;/manifest&gt;</pre>
616614

617615
<p>For more information about the manifest file, see the documentation for <a

docs/html/guide/developing/other-ide.jd

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -700,7 +700,6 @@ example library project declares the Activity <code>GameActivity</code>: </p>
700700
&lt;activity android:name="GameActivity" /&gt;
701701
...
702702
&lt;/application&gt;
703-
...
704703
&lt;/manifest&gt;</pre>
705704

706705
<h4>Updating a library project</h4>
@@ -796,7 +795,6 @@ like this: </p>
796795
&lt;activity android:name="com.example.android.tictactoe.library.GameActivity" /&gt;
797796
...
798797
&lt;/application&gt;
799-
...
800798
&lt;/manifest&gt;</pre>
801799

802800
<p>For more information about the manifest file, see the documentation for <a

docs/html/guide/practices/screens_support.jd

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -693,13 +693,13 @@ nine-patch images, which always takes place by default. </p>
693693

694694
<pre>
695695
&lt;manifest xmlns:android="http://schemas.android.com/apk/res/android"&gt;
696-
...
697696
&lt;supports-screens
698697
android:smallScreens="true"
699698
android:normalScreens="true"
700699
android:largeScreens="true"
701700
android:xlargeScreens="true"
702701
android:anyDensity="true" /&gt;
702+
...
703703
&lt;/manifest&gt;
704704
</pre>
705705
<!-- &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; android:resizeable="true" -->

docs/html/guide/publishing/licensing.jd

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -784,7 +784,6 @@ android:name="com.android.vending.CHECK_LICENSE"&gt;</code></p>
784784
<pre>&lt;?xml version="1.0" encoding="utf-8"?&gt;
785785

786786
&lt;manifest xmlns:android="http://schemas.android.com/apk/res/android" ..."&gt;
787-
...
788787
&lt;!-- Devices &gt;= 3 have version of Android Market that supports licensing. --&gt;
789788
&lt;uses-sdk android:minSdkVersion="3" /&gt;
790789
&lt;!-- Required permission to check licensing. --&gt;

docs/html/guide/topics/data/backup.jd

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -166,6 +166,7 @@ href="{@docRoot}guide/topics/manifest/application-element.html">{@code
166166

167167
<pre>
168168
&lt;manifest ... &gt;
169+
...
169170
&lt;application android:label="MyApplication"
170171
<b>android:backupAgent="MyBackupAgent"</b>&gt;
171172
&lt;activity ... &gt;

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

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -441,6 +441,7 @@ element. For example, an activity could be protected as follows:
441441
<pre>
442442
&lt;manifest . . . &gt;
443443
&lt;permission android:name="com.example.project.DEBIT_ACCT" . . . /&gt;
444+
&lt;uses-permission android:name="com.example.project.DEBIT_ACCT" /&gt;
444445
. . .
445446
&lt;application . . .&gt;
446447
&lt;activity android:name="com.example.project.FreneticActivity"
@@ -449,9 +450,6 @@ element. For example, an activity could be protected as follows:
449450
. . .
450451
&lt;/activity&gt;
451452
&lt;/application&gt;
452-
. . .
453-
&lt;uses-permission android:name="com.example.project.DEBIT_ACCT" /&gt;
454-
. . .
455453
&lt;/manifest&gt;
456454
</pre>
457455

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ when the application is ready to be published, it should be set as a
4242
reference to a string resource, so that it can be localized like other
4343
strings in the user interface.</dd>
4444

45-
<dt><a name="nm"</a>{@code android:name}</dt>
45+
<dt><a name="nm"></a>{@code android:name}</dt>
4646
<dd>The name that's at the base of the permission tree. It serves as
4747
a prefix to all permission names in the tree. Java-style scoping should
4848
be used to ensure that the name is unique. The name must have more than

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

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -403,10 +403,9 @@ declares a Bluetooth permission, but does not declare the Bluetooth feature in a
403403
</dl>
404404

405405
<pre>&lt;manifest ...>
406-
...
407406
&lt;uses-permission android:name="android.permission.BLUETOOTH_ADMIN" />
408407
&lt;uses-sdk android:minSdkVersion="3" />
409-
...
408+
...
410409
&lt;/manifest></pre>
411410

412411
<dl>
@@ -418,10 +417,9 @@ including devices running older versions of the platform. </dd>
418417
</dl>
419418

420419
<pre>&lt;manifest ...>
421-
...
422420
&lt;uses-permission android:name="android.permission.BLUETOOTH_ADMIN" />
423421
&lt;uses-sdk android:minSdkVersion="3" android:targetSdkVersion="5" />
424-
...
422+
...
425423
&lt;/manifest></pre>
426424

427425
<dl>
@@ -430,11 +428,10 @@ including devices running older versions of the platform. </dd>
430428
</dl>
431429

432430
<pre>&lt;manifest ...>
433-
...
434431
&lt;uses-feature android:name="android.hardware.bluetooth" />
435432
&lt;uses-permission android:name="android.permission.BLUETOOTH_ADMIN" />
436433
&lt;uses-sdk android:minSdkVersion="3" android:targetSdkVersion="5" />
437-
...
434+
...
438435
&lt;/manifest></pre>
439436

440437
<dl>
@@ -445,11 +442,10 @@ feature support, for all devices.</dd>
445442
</dl>
446443

447444
<pre>&lt;manifest ...>
448-
...
449445
&lt;uses-feature android:name="android.hardware.bluetooth" android:required="false" />
450446
&lt;uses-permission android:name="android.permission.BLUETOOTH_ADMIN" />
451447
&lt;uses-sdk android:minSdkVersion="3" android:targetSdkVersion="5" />
452-
...
448+
...
453449
&lt;/manifest></pre>
454450

455451

docs/html/guide/topics/security/security.jd

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -120,9 +120,8 @@ specify:</p>
120120

121121
<pre>&lt;manifest xmlns:android=&quot;http://schemas.android.com/apk/res/android&quot;
122122
package=&quot;com.android.app.myapp&quot; &gt;
123-
124123
&lt;uses-permission android:name=&quot;android.permission.RECEIVE_SMS&quot; /&gt;
125-
124+
...
126125
&lt;/manifest&gt;</pre>
127126

128127
<p>At application install time, permissions requested by the application are
@@ -175,13 +174,12 @@ of its activities could declare a permission for this operation as follows:</p>
175174

176175
<pre>&lt;manifest xmlns:android=&quot;http://schemas.android.com/apk/res/android&quot;
177176
package=&quot;com.me.app.myapp&quot; &gt;
178-
179177
&lt;permission android:name=&quot;com.me.app.myapp.permission.DEADLY_ACTIVITY&quot;
180178
android:label=&quot;&#64;string/permlab_deadlyActivity&quot;
181179
android:description=&quot;&#64;string/permdesc_deadlyActivity&quot;
182180
android:permissionGroup=&quot;android.permission-group.COST_MONEY&quot;
183181
android:protectionLevel=&quot;dangerous&quot; /&gt;
184-
182+
...
185183
&lt;/manifest&gt;</pre>
186184

187185
<p>The {@link android.R.styleable#AndroidManifestPermission_protectionLevel

0 commit comments

Comments
 (0)