windows-phone-7 - 如何通过浏览器 url 启动 windows phone 应用程序

标签 windows-phone-7 windows-phone-8 windows-phone-7.1 windows-phone-8.1

我是 Windows Phone 应用程序开发的新手。是否可以通过浏览器 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>

最佳答案

hell ......我得到了答案。如果我通过javascript调用它就可以了

<input id="btnwindowsphone" type="button" class="button" name="" value="open windows phone"      onclick="javascript:loadwindowsphone();" /><br /><br />

function loadwindowsphone() {
                     window.location = 'alsdkcs://hd';
                 }

关于windows-phone-7 - 如何通过浏览器 url 启动 windows phone 应用程序,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/24525285/

相关文章:

windows-phone-8 - 尝试访问 LAN 中特定端口上的页面时出现不支持的地址错误

c# - Windows Phone8 中的模拟框架

silverlight - 在 Windows Phone 应用程序中处理 SIP 的 Enter 键

windows-phone - 禁用 SSL 证书验证

c# - 在 WP7 WebClient 中添加 header

使用 GeoCoordinateWatcher 时出现 Windows Phone 7 性能问题?

windows-phone-7 - window 电话 8 : "The drive cannot locate a specific area or track on the disk."

c# - 从我的电脑发送信息到我的手机

c# - 无法访问 Windows Phone 中的 MessageBox 类

windows-phone-7 - 一款适用于 7.1 和 7.0 的应用程序