-
-
Save x011/13fc221a7032f5fc4b1c to your computer and use it in GitHub Desktop.
This file contains hidden or 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
String packageName = "com.android.browser"; | |
String className = "com.android.browser.BrowserActivity"; | |
Intent intent = new Intent(Intent.ACTION_VIEW); | |
intent.addCategory(Intent.CATEGORY_LAUNCHER); | |
intent.setClassName(packageName, className); | |
intent.setData(Uri.parse("https://google.com")); | |
startActivity(intent); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment