How to open url in lua script?

How to open url in lua script?
0.0 0


I want to open url when player click a button, how can I do this?


open url is platform dependent, you need to make a lua wrapper for each platform.


I don’t understand. I’m using Cocos2dx 3.0 LUA on android. How can i do?
thank u very much


I understand the problem, he want to open an URL from the game (for example, a button, where you press and then the game launches the browser with that url).

It is a good question, any knows how to open an url from the game?


Does it mean that cocos2d-x should have a control named webView?


when you use lua,in android :
os.execute("am start -n "…urlstring);