windows-phone-7 – 如何通过浏览器网址启动Windows Phone应用程
发布时间:2020-12-14 03:54:28 所属栏目:Windows 来源:网络整理
导读:我是 windows phone app开发的新手.是否可以通过浏览器URL打开 Windows Phone应用程序.如果可能,请有人帮助我. How to implement my very own URI scheme on Android 请访问以上网址; 但它可能在android中 activity android:name="TabHost" android:label="@
我是
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="Assetssquaretile-sdk.png" Square44x44Logo="AssetssmallTile-Phone-sdk.png"> <m3:DefaultTile ShortName="Launcher API C#" DefaultSize="square150x150Logo" Wide310x150Logo="Assetstile-sdk.png" Square71x71Logo="Assetsmediumtile-sdk.png"> <m3:ShowNameOnTiles> <m3:ShowOn Tile="square150x150Logo"/> <m3:ShowOn Tile="wide310x150Logo"/> </m3:ShowNameOnTiles> </m3:DefaultTile> <m3:SplashScreen Image="Assetssplash-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'; } (编辑:李大同) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |
推荐文章
站长推荐
- windows – “(.hg not found)”从cygwin托管的存
- .net – ProcessStartInfo的UseShellExecute和Cr
- windows – Delphi中的GDI行间距?
- windows – Jenkins:运行远程测试脚本和报告结果
- 推送通知 – 企业Windows Phone 8.1的推送通知
- Windows系统调用中的系统服务表描述符
- windows – 从同一个文件夹中调用另一个.bat文件
- 处理Microsoft Exchange电子邮件的另一种方法
- 打印 – 在Windows Server上打印服务器与打印机共
- Window10下Python3.7 安装与卸载
热点阅读