开发者

Offer to open url in app instead of IE in WP7?

I have an app that displays news stories for a publication. If a user opens a story on their phone in IE, I would like to offer an option to open it in the newsreader app instead. Is it possible to hook into IE somehow to do this? Or perhaps display a li开发者_JAVA技巧nk on the website that the phone knows how to translate into an app?


Unfortunately it is not possible to hook your application to IE. The OS only provides this functionality to some special apps (ie. YouTube). Launching apps from IE is not possible.


You can use a WebBrowser control for doing this.

Since you're displaying news stories I'm assuming your app is going to download these from some website. To do this you can create a WebClient and use the DownloadStringAsync method to fetch the story. In the DownloadStringCompleted event handler load the web page using WebClient.NavigateToString.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜