The package name adheres to the standard Java package-naming guidelines, which were established to lower the risk of two packages being released with the same name. The top level of the package name is the domain identifier of the company (com, org, and net are examples). This is followed by the domain name, such as google. Finally, a descriptive title for the contents of the package is provided. For purposes of this chapter, my package name for the Hello World! application will omit "com" to identify that it is a text application and not meant to be published. All future packages created in this book will be publishable and use the com identifier.

For the HelloWorldText application, use the package name android_programmers_ guide.HelloWorldText. This name uniquely identifies the code that belongs to this application and differentiates this test application from others you will develop in this book.

0 0

Post a comment