简体   繁体   English

同一个 Xamarin.Forms 项目的两个应用程序部署到 android

[英]Two apps for the same Xamarin.Forms project deploy to android

When I deploy the Xamarin.Forms app to my physical device or emulator, if it is from Visual Studio, it shows two apps, one with .android extension.当我将Xamarin.Forms应用程序部署到我的物理设备或模拟器时,如果它来自 Visual Studio,它会显示两个应用程序,一个具有.android扩展名。 When I deploy it from the Microsoft App center, It deploys one apk file and installs two apps.当我从 Microsoft 应用中心部署它时,它会部署一个 apk 文件并安装两个应用程序。 See the below image.见下图。
在此处输入图像描述
It happened after I added the app icon and splash activity.它发生在我添加应用程序图标和启动活动之后。

Since you added SplashActivity.cs , it has MainLauncher = true , so now you need to set MainLauncher = false in your MainActivity.cs由于您添加了SplashActivity.cs ,它具有MainLauncher = true ,所以现在您需要在MainActivity.cs中设置MainLauncher = false

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

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