07-21-2008 11:45 AM
Quote from the previous forum:
I am invoking the blackberry browser in the middle of my app. Is there a way to gain control over the application from that point on (for example, what shows up on the menu, etc.) or is it all the browser from that point on?
07-21-2008 01:27 PM
When launching the browser (either via MIDlet.platformRequest() or Browser.getDefaultSession().displayPage()), the original responder is correct: you have turned over control to another application, and cannot alter the contents of that application's menu, with the exception of adding in an ApplicationMenuItem via the ApplicationMenuItemRepository.
07-21-2008 05:22 PM
Thank you for the reply. I am trying to use the browser field now; is it possible to customize the menu for the browser field and also change the scroll over links feature into a free moving cursor?
07-22-2008 10:01 AM
You can add other browser menu options by changing the RenderingOptions used by the browser field. Have a look at the RenderingOptions class for more information.
A browser field opens in Column View. A user can change this by selecting Page View from the menu on BlackBerry models that support this view. This provides a cursor a user can scroll over the page.
07-22-2008 10:26 AM
You could also customize the menu of the browser field by implementing your own MainScreen class and overriding the makeMenu method. This gives you full control over the menu displayed.
07-29-2008 09:31 AM
09-16-2008 06:38 PM
1. Can I launch the net.rim.blackberry.api.browser via the net.rim.blackberry.api.browser.BrowserSession.disp
2. If so, how can I configure things so that when the user presses the back button (or the BB equivalent), the launching application is invoked? I see that net.rim.blackberry.api.browser.BrowserSession.disp
3. So, how do I configure my application to launch via a specific URL?
To summarize, I simply want to launch the browser from my application, and provide an easy BB idiomatic way for the user to return to my application when they are finished in the browser.
APPLICATION --> launches BROWSER --> user is done w/ browser, presses BACK button --> launches APPLICATION
09-17-2008 04:11 AM
RexDoug - I suggest you review the Chapter in the JDE called "Using the BlackBerry Browser" especially the section called "Display content in a BlackBerry Browser field" to explain what 'classes' you need to use for a Browser Field.
2. As far as I am aware, you can't. As noted in previous replies to this post, the Browser is a separate application, effectively what you are doing is requesting that the Browser come to the foreground and display the page you have asked for. From there the use can do whatever they want. However, in most cases the Browser will just appears as a window over the top of your application. So when the user Escapes from the Browser they will end up displaying your application as if the Browser had been a window in your application. If you really want the Browser display to be specific to your Application, you need a Browser Field. See above.
3. See the Chapter in the JDE called "Using the BlackBerry Browser", section "Display content in the BlackBerry Browser".
It is very easy, give it a go.