Skip to content

Instantly share code, notes, and snippets.

@scruffyfox
Created April 13, 2012 11:54
Show Gist options
  • Save scruffyfox/2376327 to your computer and use it in GitHub Desktop.
Save scruffyfox/2376327 to your computer and use it in GitHub Desktop.
Start a telephone call
String telNum = "tel:" + url.getHost().replaceAll(" ", "");
Intent intent = new Intent(Intent.ACTION_CALL, Uri.parse(telNum));
startActivity(intent);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment