选择启动活动以使用xamarin android进行调试


我有两个活动,都标记为MainLauncher = true,这是所需的行为-我希望在安装时在设备上有两个应用程序快捷方式。在开发过程中,我想选择特定的活动,这将始终显示在我调试这个应用程序。我使用的是Visual Studio 2015更新3,最新的Xamarin.Android

[Activity(Label = "Activity 1", MainLauncher = true, Icon = "@drawable/iconMain"]
...

[Activity(Label = "Activity 2", MainLauncher = true, Icon = "@drawable/iconMain"]
...

转载请注明出处:http://www.souyuntu.com/article/20230526/2583233.html