windows-phone-7 – 如何通过浏览器网址启动Windows Phone应用程序

我是 windows phone app开发的新手.是否可以通过浏览器URL打开 Windows Phone应用程序.如果可能,请有人帮助我.

How to implement my very own URI scheme on Android

请访问以上网址;

但它可能在android中

<activity
        android:name="TabHost"
        android:label="@string/app_name"
        android:screenorientation="portrait" >
        <intent-filter>
            <action android:name="android.intent.action.MAIN" />

            <category android:name="android.intent.category.LAUNCHER" />
        </intent-filter>
        <intent-filter>
            <data android:scheme="myschema" />

            <action android:name="android.intent.action.VIEW" />

            <category android:name="android.intent.category.broWSABLE" />
            <category android:name="android.intent.category.DEFAULT" />
        </intent-filter>
 </activity>

下面的代码是在Windows 8桌面IE浏览器中工作

但它不能在Windows手机上工作

<Applications>
 <Application Id="SDKSample.App" Executable="$targetnametoken$.exe"                                     EntryPoint="SDKSample.App">
  <Extensions>
    <Extension Category="windows.protocol">
      <Protocol Name="alsdkcs" m2:DesiredView="useLess"/>
    </Extension>
    <Extension Category="windows.fileTypeAssociation">
      <FileTypeAssociation Name=".alsdkcs" m2:DesiredView="useLess">
        <SupportedFileTypes>
          <FileType>.alsdkcs</FileType>
        </SupportedFileTypes>
      </FileTypeAssociation>
    </Extension>
  </Extensions>
  <m3:VisualElements displayName="Launcher API C# sample" Description="AssociationLaunching C# sample" ForegroundText="light" BackgroundColor="#00b2f0" Square150x150logo="Assets\squaretile-sdk.png" Square44x44logo="Assets\smallTile-Phone-sdk.png">
    <m3:DefaultTile ShortName="Launcher API C#" DefaultSize="square150x150logo" Wide310x150logo="Assets\tile-sdk.png" Square71x71logo="Assets\mediumtile-sdk.png">
      <m3:ShowNameOnTiles>
        <m3:ShowOn Tile="square150x150logo"/>
        <m3:ShowOn Tile="wide310x150logo"/>
      </m3:ShowNameOnTiles>
    </m3:DefaultTile>
    <m3:SplashScreen Image="Assets\splash-Phone-sdk.png" BackgroundColor="#00b2f0"/>
    <m3:ApplicationView MinWidth="width320"/>
  </m3:VisualElements>
</Application>

解决方法

见鬼……我得到了答案.如果我通过javascript调用它会工作

<input id="btnwindowsphone" type="button" class="button" name="" value="open windows phone"      onclick="javascript:loadwindowsphone();" /><br /><br />
function loadwindowsphone() {
                     window.location = 'alsdkcs://hd';
                 }

相关文章

Windows2012R2备用域控搭建 前置操作 域控主域控的主dns:自...
主域控角色迁移和夺取(转载) 转载自:http://yupeizhi.blo...
Windows2012R2 NTP时间同步 Windows2012R2里没有了internet时...
Windows注册表操作基础代码 Windows下对注册表进行操作使用的...
黑客常用WinAPI函数整理之前的博客写了很多关于Windows编程的...
一个简单的Windows Socket可复用框架说起网络编程,无非是建...