jamesc
jamesc

Reputation: 12837

Are Android application domain names used for anything other than uniquely identifying the app?

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

Answers (2)

Jonathan Henson
Jonathan Henson

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

pocorschi
pocorschi

Reputation: 3665

Sorry if this does't answer all your questions but i think that the answer is more a general java question then an android specific question. This is a pretty good explanation

Upvotes: 4

Related Questions