简体   繁体   English

个人Android应用程序的包名称

[英]Package Name for Personal Android App

If i want to create an Android application and publish it on the market, can I use com.wordpress.MyName.appName as my package name ? 如果我想创建一个Android应用程序并在市场上发布,我可以使用com.wordpress.MyName.appName作为我的包名吗?

What's usually the package name for publishing personal applications in the android market ? 什么通常是在Android市场中发布个人应用程序的包名?

Your package name can be literally anything and everything. 您的包名称可以是任何事物。 But when you publish an app on the market place, you need to make sure that your package name is unique. 但是,当您在市场上发布应用程序时,您需要确保您的包名称是唯一的。

So, if already someone is using the name of the package in an already published app, you can't use it. 因此,如果已经有人在已发布的应用中使用了包的名称,则无法使用它。

The reason is that if the package name is same for two apps then the phone OS needs to uninstall the previous app before installing the new one as two apps with the same package name cant co-exist in a phone. 原因是如果两个应用程序的包名称相同,那么手机操作系统需要在安装新应用程序之前卸载以前的应用程序,因为两个具有相同包名称的应用程序无法在手机中共存。

So, it is advisable to make your unique package name and use it while publishing the apps on the marketplace. 因此,建议您制作独特的软件包名称,并在市场上发布应用程序时使用它。

I feel that this would be the best way to do it. 我觉得这是最好的方法。

[com/edu/org/...].[organizationName].[projectName + version/date] [com / edu / org / ...]。[organizationName]。[projectName + version / date]

You can use any Package Name you like, and which fits your organisation! 您可以使用您喜欢的任何包名称,哪个适合您的组织! The Main Package just has to be unique on Android Market (the full package name, you can for example publish com.wordpress.alt if com.wordpress is already published on the market) 主要软件包必须在Android Market上是唯一的(完整的软件包名称,例如,如果com.wordpress已经在市场上发布,您可以发布com.wordpress.alt)

You should perhaps create your own unique package name as this associates it with your software. 您应该创建自己独特的包名称,因为这会将其与您的软件相关联。 "com.wordpress" will be used by the Wordpress software. “com.wordpress”将由Wordpress软件使用。 Think of it like a reverse internet address. 把它想象成一个反向的互联网地址。

Probably best to use the same approach as for Java in general. 可能最好使用与Java相同的方法。 For example, base it on your email address (as suggested here: http://c2.com/ppr/wiki/JavaIdioms/JavaPackageNames.html ) 例如,根据您的电子邮件地址(如此处所示: http//c2.com/ppr/wiki/JavaIdioms/JavaPackageNames.html

Read this two pages about Package name 阅读关于包名称的这两页

Android package name and What should be the package name of android app? Android包名称android应用程序的包名应该是什么?

Only need to take care that the name you have, is not already there in market. 只需要注意你所拥有的名字,不在市场上。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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