07-16-2012 08:45 AM
I am using a browserfield to display some web content in my BB application. But when i now click on the link in the Browserfield, the content within the browserfield changes.
Is there any way to open the link's click event in a BB default browser, and thereby keeping the Browserfield content in my application same as it is without navigating to other page.
I am using a third party webpage, so that i cant modify the page. I have to handle the click event to open the new URL in BB default browser.
Any helps please.....
07-16-2012 11:36 PM
Take a look at this knowledge base : http://supportforums.blackberry.com/t5/Java-Develo
Notice the code in the handleResourceRequest.
Everytime a click happens this routine will be called....instead of caching just look at the request URL and decide if it is a new page...if it is use the regular open browser API to launch the browser with that URL. If not just let it pass thru to the last line for hte browserfield to handle.
Hope this helps.