[SOLVED]How do I open a URL?(Android)

Does Cocos2dx have this built in?
Im trying to open it up in a browser from the app, not inside the app itself.

Application::getInstance()->openURL(“http://www.google.com/”);

Thats it? :open_mouth:

Hmm, the project builds but the button doesnt open the link
Any suggestions?

Thank you!
Turns out I was missing something from a file for some reason :stuck_out_tongue: now it works!
ill post what i was missing in case anyone else encounters the same issue.
In CCApplication-android.cpp i was missing:

bool Application::openURL(const std::string &url)
{
return openURLJNI(url.c_str());
}

After adding it the link works on button press.

FYI: It looks like this first appeared in Cocos2d-x v.3.3.

Checking the docs for the prior version, I don’t see it.
http://www.cocos2d-x.org/reference/native-cpp/V3.2/index.html

Thanks for the info EMebane, ill reference that next time :smile: