[英]How to avoid multiple instances of same app
每当我单击应用程序图标时,就会创建该应用程序的多个实例。我的AndroidManifest.xml如下所示。
<application
android:name="com.kez.customgallery.UILApplication"
android:allowBackup="true"
android:icon="@drawable/logo"
android:label="@string/app_name"
android:launchMode="singleInstance"
android:screenOrientation="portrait"
android:theme="@style/AppBaseTheme" >
把android:launchMode =“ singleTop”。
在您的AndroidManifest.xml文件中更改包名称
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.