1

I'm creating an app using libgdx. In the contact page I would like, as for the email ( Gdx.net.openURI("mailto:cippa@lippa.com"); ), give the chance to made a phone call by clicking on the phone number.

Is this possible using libgdx? Or I have to do this twice, using first Android and then iOS?

(Like in this question: How to make a phone call programmatically?)


EDIT

How is possible to make a phone call programmatically in JAVA for iOS? Because for Android is clear, simple and done, but for iOS, without using Objective-C?

Cœur
  • 37,241
  • 25
  • 195
  • 267
  • You do have to do it differently for iOS and Android. Just create an interface for it, and pass the platform-specific implementation of the interface into your game's constructor. – Tenfour04 Jul 21 '14 at 21:06

1 Answers1

0

As for the edited question (IOs phone call in Java), I haven't tested this code, but I think it should work:

UIApplication.getSharedApplication().openURL(new NSURL("telprompt://" + number));
Lucio Crusca
  • 1,277
  • 3
  • 15
  • 41