04-19-2011 07:01 PM
The thing is, I'd like to open up the built-in broswer app when someone clicks on a link im my app.
Can anyone give me some example for how to do that? ![]()
At the moment the links are opened in the app which is not a good thing.
Thanks for your help, I'll give Kudos for right answers! ![]()
04-19-2011 07:21 PM
You'll want to use the invoke browser API
You just have to use code like:
var args = new blackberry.invoke.BrowserArguments( page );
blackberry.invoke.invoke(blackberry.invoke.APP_BR
where page is a string containing the URL you want to vist.
This will switch the app to the browser, and open the inputed webpage
EG: page = "http://www.blackberry.com" will open blackberry.com in the browser
And in your XML you need to have:
04-19-2011 07:24 PM
Thank you!
I'll test that tomorrow ![]()
04-19-2011 07:26 PM
No problem,
Make sure you test it in the newest simulator/SDK though.
This API is completely broken in all of the earlier ones.
04-19-2011 07:29 PM
I'll do, thanks ![]()