Reputation: 12837
I'm starting my first Android app and after reading up I understand that the reverse domain name needed for an Android app is required in order to uniquely identify the app but is the application domain name used for anything other than uniquely identifying the app?
Specifically I am wondering about
1) The consequences (feature or bug?) of using different domain names for activities within the app
2) Is there any relation to a registered domain used for a website?
3) Any other snippets to fill in my lack of knowledge :)
Upvotes: 9
Views: 14478
Reputation: 8206
Sun recomends that you use your company's Internet domain name (which is known to be unique) written in reverse. You then use subpackages for different projects. For example, horstmann.com is a domain that one of the authors registered. Written in reverse order, it turns into the package com.horstmann. That package can then be further subdivided into subpakcages such as com.horstmann.corejava.
From the Revised and Updated Java SE 6. Core Java.
This is the way all java packages are. Android is no different.
Upvotes: 14