Android follows the same naming conventions as Java,
Naming conventions
Package names are written in all lower case to avoid conflicts with class or interface names.
Companies use their reverse Internet domain name to start the names of their packages, for example com.example.mypackage for a package called mypackage created by the programmer at example.com.
Name conflicts that occur within one company should be processed by agreement within that company, possibly by including a region or project name after the company name (for example, com.example.region.mypackage).
Java packages start with java. or javax.
In some cases, the Internet domain name may not be a valid package name. This can happen if the domain name contains a hyphen or other special character, if the package name starts with a digit or another character that is illegal to use as the beginning of a Java name or if the package name contains a reserved Java keyword such as "int". In this case, the proposed convention is to add underlining. For example:
Legalization of package names:
Domain Name Package Name Prefix hyphenated-name.example.org org.example.hyphenated_name example.int int_.example 123name.example.com com.example._123name
user370305 Nov 10 '11 at 5:08 2011-11-10 05:08
source share