Best way to make a phone call?
zoid66
Member, PRO Posts: 11
For Both IOS and Android.. I was thinking (OpenURL) tied to a button and adding in a phone number tag work to make a phone call from a game? Such that when you click on a phone number from a webpage. I don't see a 'tel' drop down.. Thinking gamesalad should add in a few other 'OpenURL' in the drop down such that even google market market:// will allow on "android" the phone to launch the google play app and not the browser.
Let me know if someone has found other ways that work.. save me some time.
Let me know if someone has found other ways that work.. save me some time.
Comments
@Leonarddeveloper What won't Apple allow? Phone function access from within applications is absolutely possible, as I've done it with one of my apps (not built with GS).
public boolean shouldOverrideUrlLoading(WebView view, String url) {
if (url.startsWith("mailto:") || url.startsWith("tel:")) {
Intent intent = new Intent(Intent.ACTION_VIEW,
Uri.parse(url));
startActivity(intent);
}
view.loadUrl(url);
return true;
}
My apologies, I didn't define it specifically enough, Apple WONT allow anything like phone calls or core function accesibilities through HTML as he was suggesting as you can't access core functionalities through anything else in GS,
And he was alluding to doing it through html if you read the text properly