Take the 2-minute tour ×

Does an Android package name has to include three parts eg: net.test.package

Or can it also be manualy changed to eg: test.package

share|improve this question
Its not necessary that package name include three parts. You can change this according to your requirement –  Deepika Nov 5 '12 at 12:15
Look at stackoverflow.com/questions/8075162/… –  user370305 Nov 5 '12 at 12:16

4 Answers 4

up vote 1 down vote accepted

Technically the package name can be anything, but it's highly recommended that you use a reverse domain name format, eg. if your website were http://luc.com you'd use com.luc.appname.

share|improve this answer

There is no strict convention per se. But it is always good to follow conventions (IMHO). And Android, in principal, follows Java's package naming conventions. You can get more information at these sites:

  1. http://www.quora.com/Android-OS/Why-do-a-majority-of-Android-package-names-begin-with-com
  2. http://en.wikipedia.org/wiki/Java_package#Package_naming_conventions

Disclaimer: The above is from an answer here on SO: http://stackoverflow.com/a/6273935/450534. All credits to Jimmy Huch for a brilliant answer. Do, up-vote his answer. ;-)

EDIT: And yes, you can rename your package after a project has been created. A few errors might be thrown, but a few simple imports will fix them. That being said, it is always better to decide on something and stick to it. Makes life a tad easier.

share|improve this answer

Yes.It can be Any you can set any time if you want to change.

Its actually as per your requirement.

See this if you want to change :

GO TO Project > src > Package Dir > 
Right Click > Refactor  > Rename 


GO TO Project > src > Package Dir > 
F2 > Set New Package Name.
share|improve this answer

The package name is used for unique identification for your application. In android uses the package name to determine one application has been installed or not. The general naming is: com.companyname.applicationname eg: com.android.Camera

Its not compulsory that package name include three parts. You can change it according to your requirement.

share|improve this answer

Your Answer


