-
-
Save csaba-farkas/2cce686a7d4ed963df482650d4aa7f81 to your computer and use it in GitHub Desktop.
New implicit intent with Uri data
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
private void openAnAppThatCanHandleThisIntent(Uri mapUri) { | |
Intent intent = new Intent(Intent.ACTION_VIEW); | |
if (intent.resolveActivity(getPackageManager()) != null) { | |
startActivity(intent); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment