我的应用程序试图取代我的另一个应用程序

我的应用程序试图取代我的另一个应用程序

问题描述:

我的应用程序试图取代另一个我的申请。

My application tries replace another my application.

我加上的git https://github.com/szalek/AndroidLevel1 aplication。

I add aplication on git https://github.com/szalek/AndroidLevel1.

当我安装应用程序黑胶和接下来的安装应用程序TeamLeader1 /'。
我看到消息您正在安装会替换其他应用程序中的应用。所有previous用户数据将被保存

When I install the application 'Vinyl' and next install the application 'TeamLeader1/'. I see message 'The application you are installing will replace another application. All previous user data will be saved'

这是因为这两个应用程序具有相同包名。如果这两个应用程序包的名称是不同的,你就不会得到这个消息。

This is because both applications have the same package name. If the package name of the two applications are different, you won't get this message.

事实上,如果在清单文件包的名称(在<清单> 标记),另一个安装的应用程序的包名相匹配,它将取代它。

In fact, if the package name in the Manifest file (in the <manifest> tag) matches the package name of another installed application, it will replace it.