Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Native Development

Reply
Developer
LMcRae
Posts: 163
Registered: ‎04-16-2009
My Device: Not Specified
Accepted Solution

Display webpage

I need to display a webpage from my app but I can't seem to find anything to launch the browser.  I also don't see anything to do a http post other using sockets. Are there no higher level network libs?

Please use plain text.
Developer
LMcRae
Posts: 163
Registered: ‎04-16-2009
My Device: Not Specified

Re: Display webpage

Can anyone point me to the rough area I need to look in for this.  My game is finished I just need a way to launch the browser to show my high score page and a http post to send it.

Please use plain text.
BlackBerry Development Advisor
oros
Posts: 1,557
Registered: ‎04-12-2010
My Device: BlackBerry Z10

Re: Display webpage

Hello,

 

With respect to launching the browser, there is some information in the following thread regarding invoking other applications:

http://supportforums.blackberry.com/t5/Native-SDK-for-BlackBerry-Tablet/launching-other-apps/td-p/13...

 

HTTP requests are set to be handled by the native browser, therefore something like the following should allow you to launch the browser to a URL:

 

navigator_invoke("http://www.google.ca/", 0);

 With respect to HTTP/Socket connections, the following thread may be of use:

http://supportforums.blackberry.com/t5/Native-SDK-for-BlackBerry-Tablet/Playbook-Network-I-O/td-p/13...

 

Erik Oros

BlackBerry Development Advisor


Erik Oros | @WaterlooErik | eoros@blackberry.com | Developer Issue Tracker

If a reply has answered your question, please click Accept as Solution to help other visitors in the future.
Please use plain text.
Developer
LMcRae
Posts: 163
Registered: ‎04-16-2009
My Device: Not Specified

Re: Display webpage

Thank you very much.   That exactly what I needed.

Please use plain text.