• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

Apps How do you name packages?

Z3R0115

Newbie
I Know your supposed to name them in a specific format but I don't understand it...Does it really even matter much?

Can't seem to find any straight forward info on this online, thanks
 
Let's say you are making an app the sends email and your name is Bob. You could put "com.bob.email". The package name is a way to identify your app from others, so you should make it specific to you. So for example, I make apps under the name BBA, so I would put "com.bba.email".
Package names also don't need to have three parts to them. As long as they start with "com." they should be fine. You could have seven parts, or only two.

Hope this helps explain it to you.
 
You don't need to start with com. You can have what ever you want as your package name, as long as it is at least two parts(part1.part2). The standard is two only use lowercase in package names.

The package name is there to separate apps/programs from one another. Like on android: You can have several apps called Gallery for instance. This is because they have different package names. If they all had the same package name, then one app would have overwritten the other.
 
Hey thanks ALOT guys all your responses were very helpful +thanks for each of you ^-^

and yes that clears up my confusion here thanks guys
 
One thing about the packagename is importent.
Evry new class you make should be in the same namespace to make it easy for you
 
Back
Top Bottom