How do you open a link? (non-xcode version)

  • warning717
    Likes 0

    Problem Description

    In the community tutorial, the process is explained using xcode. How do you do it outside of xcode? I cant seem to find the file path and im trying to do it for android.

    https://www.youtube.com/watch?v=QdrCZvOXssY&list=PLRtjMdoYXLf4vzkg0wdBrp7YoOThOLf4H&index=11


  • Sonar Systems admin
    Likes 0

    Go to the folder manually.

  • warning717
    Likes 0

    So the only way I was able to see the folders was through Eclipse and after making all those changes from the video I have 2 errors:
    candidate is: virtual bool cocos2d::Application::openURL(const string&)

    and

    prototype for ‘void cocos2d::Application::openURL(const char*)’ does not match any in class ‘cocos2d::Application’

    both from path /cocos/platform/android/

  • warning717
    Likes 1

    Solved!
    Turns out now you only need one piece of code:

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

    Thanks anyways :D

  • Sonar Systems admin
    Likes 0

    Great 

Login to reply