Button to open URL

  • fechox
    Likes 0

    Problem Description

    Hello,

    What would be the best solution to open an URL by clicking a button using cocos2d-js for Android?

    I tried this: http://discuss.cocos2d-x.org/t/how-we-can-open-a-link-click-on-a-button-in-cocos2d-x-javascirt/15375

    but I got a compilation error: Error running command, return code: 1

    Thanks


  • Sonar Systems admin
    Likes 0

    Have you added the Java code.


    This reply has been verified.
  • fechox
    Likes 0

    Yep I had added the java code but it didn’t work, but I’ve worked it out using cc.sys.OpenURL.

    Thanks anyway for looking at it :)


    This reply has been verified.
  • Sonar Systems admin
    Likes 0

    Great to hear :D


    This reply has been verified.

Login to reply