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


Thank you for visiting the BlackBerry Support Community Forums.

BlackBerry will be closing the BlackBerry Support Community Forums Device Forums on April 1st (Developers, see below)

BlackBerry remains committed to providing excellent customer support to our customers. We are delighted to direct you to the CrackBerry Forums, a well-established and thorough support channel, for continued BlackBerry support. Please visit http://forums.crackberry.com or http://crackberry.com/ask. You can also continue to visit BlackBerry Support or the BlackBerry Knowledge Base for official support options available for your BlackBerry Smartphone.

"When we launched CrackBerry.com 10 years ago, we set out to make it a fun and useful destination where BlackBerry Smartphone owners could share their excitement and learn to unleash the full potential of their BlackBerry. A decade later, the CrackBerry community is as active and passionate as ever and I know our knowledgeable members and volunteers will be excited to welcome and assist more BlackBerry owners with their questions."

- Kevin Michaluk, Founder, CrackBerry.com

Developers, for more information about the BlackBerry Developer Community please review Join the Conversation on the BlackBerry Developer Community Forums found on Inside BlackBerry.


Reply
Highlighted
Contributor
Posts: 16
Registered: ‎01-06-2013
My Device: BlackBerry 10 - Z10 LE
My Carrier: Optus

How to open web browser from C++ native code?

Hi Guys,

 

I am working on a game for BB10 using Cocos2d-x, does any one know how to open the web url in a browser within the C++ native code?

 

Thanks a lot!

 

Developer
Posts: 103
Registered: ‎12-31-2012
My Device: Blackberry 9810
My Carrier: Verizon

Re: How to open web browser from C++ native code?

Havent tried this out... but i think this should work...

WebView* wbView = WebView::create();

wbView->setUrl(QUrl("http://www.google.com"));


mRootContainer->add(wbView);
Regular Contributor
Posts: 55
Registered: ‎10-19-2012
My Device: Playbook, DevAlpha
My Carrier: (na)

Re: How to open web browser from C++ native code?

I am using this:

 

navigator_invoke("http://www.ovogame.com/bb", NULL);

 

JC

http://www.ovogame.com/bb
Contributor
Posts: 16
Registered: ‎01-06-2013
My Device: BlackBerry 10 - Z10 LE
My Carrier: Optus

Re: How to open web browser from C++ native code?

Thanks, that works great! Smiley Happy

Contributor
Posts: 39
Registered: ‎11-13-2010
My Device: Torch 9810
My Carrier: Orange

Re: How to open web browser from C++ native code?

What about if you want open a dynamic url? like when it's been captured

DJ Reyes