如果我在Symbian OS第5版中通过浏览器单击一个URL,我如何默认打开我的应用程序 [英] How can I open my application by default, if I click a URL through Browser in Symbian OS 5th ed

查看:132
本文介绍了如果我在Symbian OS第5版中通过浏览器单击一个URL,我如何默认打开我的应用程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想打开/启动我的应用程序,当我从浏览器中点击一个特定的URL
Symbian OS Series60第5版。
(所以,如果我点击站网址,将通过我的播放器启动我的应用程序和播放)

我可以通过任何可能的方式来实现这一点?

解决方案<



我建议您首先阅读诺基亚内容处理框架的文档。



但是,操作系统理解特定MIME类型应该由特定应用程序处理,而Web浏览器实际上允许这种情况发生。 / p>

在Series60第5版手机上可以安装多个Web浏览器。我假设你只对电话中已经包含的基于Webkit的默认Web浏览器感兴趣,但是您需要注意,它可能不是电话所有者最终将定期使用的浏览器。 Opera Mini是非常受欢迎的,它肯定不会允许你在这里做你想做的。



即使使用默认的Webkit Web浏览器,无需至少手机制造商的一些支持,你就可以做你想做的事情,因为你依赖于:




  • Symbian内容处理框架能够考虑URL(而不仅仅是MIME类型)作为内容标识符的方案,并且Web浏览器与内容处理框架完全集成

  • 或Web浏览器允许你编写一个插件,使它能够理解基本上是一个新的URL方案(一个URL不以http://开头),显示为一个超链接(你可能现在就在你的手机没有做任何工作,这是值得一试。)和行为方式你想要时,当用户激活超链接。



一个替代值得尝试:保持http://URL方案,但确保您的Web服务器在HTPP头中返回您自己的MIME类型,当它收到数据的HTTP GET请求。



显然,您需要在手机上安装您的应用程序,并且能够处理该MIME类型。



您有更好的机会使用默认的Web浏览器已与操作系统充分集成,以便此工作。


I want to open/start my application when a I click on a particular URL from the browser for Symbian OS Series60 5th edition.
(So, if I click on a "station" Url, it will start my application & play through my player)
Any possible way that I can get it to do this?

解决方案

I won't offer any guarantee that you can do this on your own.

I suggest you start by reading the documentation for the Nokia Content Handling Framework.

However, there is a difference between the Operating System understanding that a specific MIME type should be handled by a specific application and the Web Browser actually allowing that to happen.

Several Web browser can be installed on a Series60 5th edition handset. I'll assume you are only interested in the default Webkit-based web browser already included in the phone but you need to be aware that it may not be the one the phone owner will ultimately use on a regular basis. Opera Mini is very popular and it certainly won't allow you to do what you want here.

Even with the default Webkit web browser, it is very possible that you won't be able to do what you want without at least some support from the handset manufacturer since you rely on either:

  • The Symbian Content Handling Framework being able to consider the scheme of a URL (instead of just a MIME type) as a content identifier and the Web Browser being fully integrated with the Content Handling Framework
  • or the Web Browser allowing you to write a plugin that makes it able to understand what is basically a new URL scheme (a URL not beginning with "http://"), display it as a hyperlink (you might just get that right now on your phone without doing any work. it's worth a try.) and behave the way you want when the user activates the hyperlink.

There is one alternative worth attempting: Keep the "http://" URL scheme but make sure your web server returns your own MIME type in the HTPP headers when it receives a HTTP GET request for the data.

Obviously, you will need your application installed on the handset and able to handle that MIME type.

You have a better chance of the default Web Browser being sufficiently integrated with the operating system already for this to work.

这篇关于如果我在Symbian OS第5版中通过浏览器单击一个URL,我如何默认打开我的应用程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆