Why Most Android App Package Names Start with 'com' | Goodiestech Blog

25 May 2017

Why Most Android App Package Names Start with 'com'

Why Most Android App Package Names Start with 'com' Goodluck Okereke 5 of 5
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 Mi...


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. 


No comments So Far...Post Yours


After dropping your comment, It will appear immediatly. Spam will be automatically deleted
Your comment(s) are appreciated. If you are finding it hard to comment, See How To Comment In Goodiestech Blog HERE

You want to get notified when i reply your comment? Kindly tick the Notify Me box.