Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

your.package.namespace - what should it be changed to?

Tags:

java

android

I'm trying to create a new project in eclipse for an android app, and I'm going to enter some stuff in a dialog, and I just wonder what the your.package.namespace is and what I am going to write here? Thanks!

like image 996
3D-kreativ Avatar asked Jan 24 '12 17:01

3D-kreativ


People also ask

What is package namespace?

Namespace packages allow you to split the sub-packages and modules within a single package across multiple, separate distribution packages (referred to as distributions in this document to avoid ambiguity).

What is the purpose of package name in Android?

The package name of an Android app uniquely identifies your app on the device, in Google Play Store, and in supported third-party Android stores.

Is package name important?

As an Android Developer, you should know that the Package Name that you choose for your app is very important. We are referring to the Package Name of the application which we declare in the Manifest.


1 Answers

The "your.package" section is reserved for a unique id for your apps; I use com.laurencedawson as I own laurencedawson.com. I tend to use the "namespace" to describe the current project, so if I was releasing an app on SO, it would be com.laurencedawson.so.

More formally here's the documentation from Google:

Package Name

This is the package namespace (following the same rules as for packages in the Java programming language) that you want all your source code to reside under. This also sets the package name under which the stub Activity is generated. Your package name must be unique across all packages installed on the Android system; for this reason, it's important to use a standard domain-style package for your applications. The example above uses the "com.example" namespace, which is a namespace reserved for example documentation — when you develop your own applications, you should use a namespace that's appropriate to your organization or entity.

Hope this helps!

like image 121
Ljdawson Avatar answered Sep 29 '22 00:09

Ljdawson