How to navigate back to the Java appliacation from a web page in Browser Session?
We are developing a Java application for BlackBerry. We have the home screen in which we have various links to open the different versions of the news pages. We have links in these news pages to open the various articles. We need to create a href link in the web page which should act like the home button. When the user clicks on this home button, the application should navigate back to the Home screen. The web pages arer be开发者_开发知识库ing created by us. So, we can embed any code. Thanks in advance.
This took me awhile to figure out and to get working, but once I did, the concept seemed so simple. Look into BrowserContentProvider. If my memory serves, you can find an example of this in the SDK. Essentially, you can register a BrowserContentProvider with your application. Then, you set up your website link with a certain extension. When the BlackBerry browser doesn't know how to handle that extension, it will go around and "ask" if any other applications know how to handle it. Your application can then recognize it and request the foreground (to open on top of the browser).
精彩评论