如何Android手机(或市场)识别的应用 [英] how does an android phone(or market) recognize an app

查看:271
本文介绍了如何Android手机(或市场)识别的应用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在开发Android应用程序。它释放到市场之前,我有一个疑问。结果
如何Android手机无法识别的应用?结果
有2场在manifest文件

I am developing an android app. Before releasing it to the market I had one doubt.
How does an android phone recognise an app?
There are 2 fields in the manifest file

 package="test.mobile"

android:label="App Name"

如果2应用程序具有相同的包,但不同的名字,然后我可以在同一台设备上安装它们两者兼而有之?
结果如果2应用程序具有相同的名称但不同的包,然后呢?
请帮助。

If 2 apps have the same package, but different names, then can I install them both on the same device?
If 2 apps have the same name but different package, then? pls help.

推荐答案

的http:// blog.javia.org/android-package-name/

应用程序包也是在Android Market上独一无二的 - 有
  不能两个应用程序与市场相同的应用程序包。

The Application package is also unique on the Android Market — there can’t be two apps with the same Application package on the Market.

在另一方面,它有可能为两个独立的开发者
  创建具有相同的应用程序包两个不同的应用程序。当然
  没有这两个应用可以在市场托管 - 市场会拒绝
  第二个因跨市场的独特应用程序包名
  规则。

On the other hand it is possible for two independent developers to create two different apps with the same Application package. Of course not both apps can be hosted on the Market — the Market would reject the second one due to the "unique App package name across Market" rule.

所以在应用程序包不可预见的第三方冲突
  应用程序是可能的,这就是为什么我们建议使用Java
  包名称约定(com.mydomain.myapp),为应用程序
  因为它避免了冲突的包名。

So conflict over the Application package with unforeseen third-party apps is possible, and that’s why it is recommended to use the Java package name convention ("com.mydomain.myapp") for the Application package name as it avoids conflict.

我认为其安全地假定两个应用程序具有相同的名称将被罚款。 :)该应用程序包的名称是唯一标识符。不过,我也从来没有见过两个应用程序与正好在App Store名称相同,所以它可能是Android的喜欢你区分。

I think its safe to assume that two apps with the same name will be fine. :) The app package name is the unique identifier. However, I've also never seen two apps with exactly the same name on the app store, so it may be that Android likes you to differentiate.

如果你有APK那么如果它有相同的命名空间,你可以不安装它。有时,Android开发过程中我得到的已经安装了一个错误,告诉我​​的包标识符com.tclayson.whatever一个应用程序,并指示我卸载。我认为它还会检查签名密钥,以查看它们是否匹配。

If you have the apk then you cannot install it if it has the same namespace. Sometimes during android development I get an error telling me an app with package identifier com.tclayson.whatever is already installed and it instructs me to uninstall. I assume that it also checks the signing keys to see if they match.

不过,如果你有一个唯一的ID的APK和名字是一样的,这是好的。我以前已经安装了与身边的同名端应用程序(再次在开发过程中)。

However if you have the apk with a unique id and the name is the same this is fine. I've installed apps with the same name side by side before (again during development).

这篇关于如何Android手机(或市场)识别的应用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆