Com prefix for android apps

What does the com prefix mean ? in some android processes?

For example: com.whatsapp, com.google.android.gapps, com.android.mms, com.antivirus, etc.

+5
source share
2 answers

com the prefix indicates the name of the android application package (since android is based on the concept of JAVA: class-package).

A naming convention is adopted to avoid name clashes

Companies use their reverse Internet domain name to start the names of their packages โ€” for example, com.whatsapp.mypackage for a package called mypackage created by a programmer on whatsapp.com

Name conflicts that occur within the same company should be handled by agreement within that company, possibly by including the region or project name after the company name (for example, com.android.mms, com.antivirus).

+2
source

This is the standard top-level business domain (TLD) for Internet domain names.

The convention in Java package names is intended to change your domain name to give you a namespace that is unlikely to interfere with other Java classes. Android also uses this convention for an โ€œapplication identifier,โ€ and once again the reverse domain approach is to prevent accidental collisions.

+1
source

Source: https://habr.com/ru/post/1204009/


All Articles