简体   繁体   中英

How to construct an Android applicationId wisely

Android apps have an applicationId that looks like com.example.app . I'm currently looking at how to correctly define one as this cannot be changed after release. In particular since we also have a website what I'm interested about is the relation between the website URL and the application id, since it seems that it affects SEO.

Let's say that our website is http://example.com . I thought that naturally the applicationId should be com.example (only two segments).

However the following link tells the following recommendation regarding appId:

example: com.example.app
We recommend adding app or android as a postfix for main project/company apps as in the example above.

Why is that ?

The more likely it is unique, the better. Using 2 segment is the minumum requirement but using 3 segment is ideal for more guarantee way for unique identifier (look like java packages). There is nothing to worry about it. Do com.example.myapp and pass it. Such as I use like that: com.mycompanyname.myprojectname

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM