android - 如何明智地构造一个 Android applicationId

Android 应用程序有一个类似于 com.example.appapplicationId。我目前正在研究如何正确定义一个,因为这在发布后无法更改。特别是因为我们也有一个网站,所以我感兴趣的是网站 URL 和应用程序 ID 之间的关系,因为它似乎会影响 SEO。

假设我们的网站是http://example.com。我认为 applicationId 自然应该是 com.example (只有两个段)。

然而,以下 https://www.skoumal.com/en/how-to-construct-applicationid-wisely/ 告诉了有关 appId 的以下建议:

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

这是为什么 ?

回答1

它越有可能是独一无二的,越好。使用 2 段是最低要求,但使用 3 段是唯一标识符的更多保证方式(看起来像 java 包)的理想选择。没有什么可担心的。做 com.example.myapp 并通过它。比如我这样使用:com.mycompanyname.myprojectname

相似文章

随机推荐

最新文章