Skip to content

Instantly share code, notes, and snippets.

@mahdimortazavi
Last active August 2, 2016 19:28
Show Gist options
  • Save mahdimortazavi/b507b65fa4bbdfea017bf5a3eefc8cf9 to your computer and use it in GitHub Desktop.
Save mahdimortazavi/b507b65fa4bbdfea017bf5a3eefc8cf9 to your computer and use it in GitHub Desktop.
open URL in android
startActivity(new Intent(Intent.ACTION_VIEW, Uri.parse("http://www.stackoverflow.com")));
// for telegram channel
startActivity(new Intent(Intent.ACTION_VIEW, Uri.parse("tg://resolve?domain=appmeraji")));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment