-
-
Save mahdimortazavi/b507b65fa4bbdfea017bf5a3eefc8cf9 to your computer and use it in GitHub Desktop.
open URL in android
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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