Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What should be the package name of android app?

I want to know that what should be the package name of android app? Means normally we used com.appname OR com.organizationName.appName, But when we are submitting our application in to market then sometimes it shows the errors related to the package name that- Please change Package name. It should not be started with com etc..

I want to know why this happnes? And what should be Right the package name for android application?

If anyone knows the reason or answer of this question then please let me know.

Thanks in advance.

like image 716
anddev Avatar asked Nov 10 '11 04:11

anddev


1 Answers

As stated here: Package names are written in all lower case to avoid conflict with the names of classes or interfaces.

Companies use their reversed Internet domain name to begin their package names—for example, com.example.mypackage for a package named mypackage created by a programmer at example.com.

Name collisions that occur within a single company need to be handled by convention within that company, perhaps by including the region or the project name after the company name (for example, com.example.region.mypackage).

Packages in the Java language itself begin with java. or javax.

In some cases, the internet domain name may not be a valid package name. This can occur if the domain name contains a hyphen or other special character, if the package name begins with a digit or other 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 event, the suggested convention is to add an underscore. For example:

enter image description here

like image 152
Paresh Mayani Avatar answered Oct 19 '22 22:10

Paresh Mayani