问题
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? )
Thank you!
EDIT
How is possible to make a phone callprogrammatically in JAVA for iOS? Because for Android is clear, simple and done, but for iOS, without using objectiveC?
回答1:
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));
来源:https://stackoverflow.com/questions/24867433/make-a-phone-call-programatically-using-libgdx