08. 02. 2021
Every Android app has its unique identifier called
applicationId and you have to choose it wisely because it cannot be changed later.
Here are two main reasons why
applicationId is important:
- It becomes a part of the app’s Google Play URL. Everyone can see it there and it impacts SEO as well.
- In order to change it, you have to create a new app on Google Play and convince all of your users to download it.
Android applicatioinId is constructed in a very similar way as Java packages are. You need a domain owned by an app owner and use it as a base, add an app-specific postfix to it and you have it:
No dashes and special characters in applicationId
Unfortunately, the applicationId cannot contain dashes and other special characters. Dots and alphanumeric characters are the only ones allowed. Here are some examples of good identifiers for main projects apps:
Add a postfix
android for the main project
We recommend adding
androidas a postfix for main project/company apps as in the example above.
Other postfixes for secondary apps
Use other postfixes for secondary apps like in example:
No domain? Use
When you are an agency as we are, use the domain of the client:
If there is no domain related to a client nor its project, there is the
client postfix as the last option to consider. We use something like this:
If you need to dig deeper into the topic, more details are available here: https://developer.android.com/studio/build/application-id
Do you want more?
Interested in more articles on programming or to be even part of the team?
Join us with your e-mail and have a sneak peek. Want more
Take a peek!
How are we looking for developers? Vláďa revealed it during one of his workshops for xPORT VŠE Business Accelerator!