Skip to content

Commit 2a7a773

Browse files
committed
Clarify rules for package name in documentation
Nowhere in the documentation does it say that the only valid package names are ones that match (excuse my abuse of regex to explain this): ^[A-Za-z][A-Za-z0-9_] This change makes clear the rules followed by the PackageParser
1 parent 9b90fd4 commit 2a7a773

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

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

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,8 +44,11 @@ to "{@code http://schemas.android.com/apk/res/android}".</dd>
4444

4545
<dt><a name="package"></a>{@code package}</dt>
4646
<dd>A full Java package name for the application. The name should
47-
be unique. For example, applications published by Google could have
48-
names in the form <code>com.google.app.<i>application_name</i></code>.
47+
be unique. The name may contain uppercase or lowercase letters ('A'
48+
through 'Z'), numbers, and underscores ('_'). However, individual
49+
package name parts may only start with letters. For example, applications
50+
published by Google could have names in the form
51+
<code>com.google.app.<i>application_name</i></code>.
4952

5053
<p>
5154
The package name serves as a unique identifier for the application.

0 commit comments

Comments
 (0)