Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Android package naming best practices [closed]

Tags:

android

what is the best practice for naming a new android project ?

like image 227
Gainster Avatar asked Mar 26 '11 23:03

Gainster


People also ask

How do you name packages on Android?

Package names are all lowercase, with consecutive words simply concatenated together (no underscores).

Should package names be lowercase?

Naming ConventionsPackage 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 .

Does package name matter Android studio?

No it wont have any change. You follow the same steps as before but with your new package. Just upload it as a new app. That's all.

Should package names be unique?

The package name defines your application's identity, so if you change it, then it is considered to be a different application and users of the previous version cannot update to the new version. So basically if package name is com.


1 Answers

Do you have a name for your company?
eg com.mycompany.function
look at what other companies/orgs do:
Eclipse swt plugin project: org.eclipse.swt
JUNit: org.junit
Apache: org.apache.commons

like image 83
katsharp Avatar answered Sep 22 '22 13:09

katsharp