I have an Android game that uses LibGDX. In it, I have a few buttons for opening URLs in a browser with:
Intent intent = new Intent(Intent.ACTION_VIEW, Uri.parse("http://myURL/")); startActivity(intent);
And it works fine ...
The problem is that I am trying to port the game to iOS using RoboVM and cannot figure out how to configure something like this.
With RoboVM bindings, I suggested that I probably want to use the openURL () method:
openURL (UIApplication application, NSURL url, String sourceApplication, NSObject annotation)
But besides NSURL, I do not know what I need to pass for the other 3 parameters. And it was not possible to find examples online about how to use it.
source share