zoukankan      html  css  js  c++  java
  • WP8.1StoreApp(WP8.1RT)---第三方启动

    8.1的协议和wp8是相互通用的

    被启动:

    相比较wp8而言,基本变化不大,但添加方式更直观了

    1:打开Package.appxmanifest

    2:切换到"声明"选项卡

    3:左侧添加"协议",右侧填写应用的属性

    4:其中名称就是程序的识别码

    5:App.cs中 override OnActivated,处理传入的参数

            protected override void OnActivated(IActivatedEventArgs args)
            {
                if (args.Kind == ActivationKind.Protocol)
                {
                    ProtocolActivatedEventArgs eventArgs = args as ProtocolActivatedEventArgs;
                    if (eventArgs.Uri.ToString() == "acfunwz:main")
                        this.OnLaunched(null);
    
                    // TODO: Handle URI activation
                    // The received URI is eventArgs.Uri.AbsoluteUri
                }
            }

    启动其他应用:

    await Windows.System.Launcher.LaunchUriAsync(new Uri("acfunwz:main"));
  • 相关阅读:
    Linux三剑客之sed
    xcodebuild
    mac xcworkspace xcodebuild
    [转]Jenkins Xcode打包ipa
    ios批量打包
    ios打包
    ios 打包
    ios 尺寸
    Launch Screen在iOS7/8中的实现
    如何查看ipa包支持哪些cpu指令集
  • 原文地址:https://www.cnblogs.com/liubaicai/p/3670184.html
Copyright © 2011-2022 走看看