How can I open the default application if I click the url through the browser on Symbian OS 5th Edition
I will not offer any guarantees that you can do this yourself.
I suggest you start by reading the documentation for the Nokia Content Handling Framework.
However, there is a difference between the operating system's understanding that a specific MIME type should be handled by a specific application, and the web browser actually allows it.
Multiple web browsers can be installed on the Series60 5th Edition phone. I am assuming that you are only interested in the default Webkit-based web browser that is already included with the phone, but you need to know that it may not be the one that the phone owner will end up using on a regular basis. Opera Mini is very popular and will definitely not let you do what you want here.
Even with the default Webkit web browser, it is very possible that you may not be able to do what you want, at least from the support of the phone manufacturer, as you rely on either:
- The Symbian Content Handling Framework can treat a URL scheme (not just a MIME type) as an identifier for the content and a web browser that is fully integrated with the platform to handle the content.
- or a web browser that lets you write a plugin that lets it figure out what a brand new URL scheme is (a URL that doesn't start with "http: //") rendering it as a hyperlink (you can just get that right now on your phone without doing any work is worth a try.) and behave the way you want when the user activates the hyperlink.
There is one alternative attempt: keep the "http: //" URL scheme, but make sure your web server returns its own MIME type in HTPP headers when it receives an HTTP GET request for data.
Obviously, you will need your application installed on your phone and capable of handling this MIME type.
You have a better chance that the default web browser will be sufficiently integrated with the operating system for this.
a source to share