Welcome, Guest: Register On Nairaland / LOGIN! / Trending / Recent / New
Stats: 3,160,520 members, 7,843,596 topics. Date: Wednesday, 29 May 2024 at 08:33 AM

Why Most Android App Package Names Start With 'com' - Phones - Nairaland

Nairaland Forum / Science/Technology / Phones / Why Most Android App Package Names Start With 'com' (655 Views)

Why Is It Most Android Phone Storage Is Not Upto Standard? / How To Fix App Package Conflict. / Why Most Android Phone Are ALIKE (2) (3) (4)

(1) (Reply) (Go Down)

Why Most Android App Package Names Start With 'com' by olarababi(f): 9:58am On May 26, 2017
By now, everyone that has an Android probably knows what an APK is. APK files are analogous to other software packages such as APPX in Microsoft Windows or Deb packages in Debian-based operating systems like Ubuntu. But other than the fact that an APK file is an app that you can install, what else do you know about an APK? What is the full form of APK and what does it stand for? Why do most Android package names start with ‘com’?


If you have ever lurked around in the Android/data folder on your Android device, you would’ve noticed a number of folders with the initials ‘com’. An Android Package Kit, or APK, is named according to the java naming convention since most of the OS uses the said programming language. These package names are always written in lower case letters to avoid name conflicts with java classes.


ALSO SEE...History Of Android Operating Systems, From Cupcake To Nought


APK naming convention

In general, a package name begins with the top-level domain name of the organization and then the organization’s domain and then any subdomains, listed in reverse order. The organization can then choose a specific name for its package. Subsequent components of the package name vary according to an organization’s own internal naming conventions.
Companies use their reversed internet domain as the application package name initials. For example, com.nairaland.myapp would be the name for a package called myapp created by someone at Nairaland.com. If the app is developed by an employee from Nigeria, or the app is developed for the said region, we can choose to name it as com.nairaland.nigeria.myapp
Since .com is the most popular domain name, we find most of the packages with the same initials. The reason for the reversed naming convention has something do with the layout on the storage media. This creates a path hierarchy if you consider each ‘.’ as a path separator. Thus, all applications from a publisher would sit together in the path hierarchy. Take some Android apps from Adobe for example. Packages from Adobe would be of the form:

com.adobe.reader (Adobe Reader)
com.adobe.photoshop (Adobe Photoshop)
com.adobe.ideas (Adobe Ideas)

These can then be internally mapped (respectively) to:

com/adobe/reader
com/adobe/photoshop
com/adobe/ideas

As mentioned, this hierarchical package naming convention comes from the java programming language. It may not be of any consequence to the end user, but it can prove quite helpful for developers.

SOURCE

1 Like

Re: Why Most Android App Package Names Start With 'com' by lekjons(m): 2:02pm On May 26, 2017
I like this.! Thanks..






com(domain).rockstargames(developers).gtasa(product)



Now i get it..

1 Like

Re: Why Most Android App Package Names Start With 'com' by rookidmart: 3:40pm On May 26, 2017
lekjons:
I like this.! Thanks..





com(domain).rockstargames(developers).gtasa(product)


Now i get it..
Not everyone follows the convention though.
Re: Why Most Android App Package Names Start With 'com' by NCP: 4:38pm On May 26, 2017
rookidmart:
Not everyone follows the convention though.

Exactly...

(1) (Reply)

Smartphone Battery Life Test Video: Gretel Gt6000 Vs. Oukitel K10000 Pro / Curve 7 / Tecno Camon Cx Or C9 Plus,which Would You Prefer?

(Go Up)

Sections: politics (1) business autos (1) jobs (1) career education (1) romance computers phones travel sports fashion health
religion celebs tv-movies music-radio literature webmasters programming techmarket

Links: (1) (2) (3) (4) (5) (6) (7) (8) (9) (10)

Nairaland - Copyright © 2005 - 2024 Oluwaseun Osewa. All rights reserved. See How To Advertise. 12
Disclaimer: Every Nairaland member is solely responsible for anything that he/she posts or uploads on Nairaland.