Created
January 7, 2014 06:38
-
-
Save angeldevil/8295481 to your computer and use it in GitHub Desktop.
Let user mark our App from market
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
Uri uri = Uri.parse("market://details?id=" + getPackageName()); | |
Intent intent = new Intent(Intent.ACTION_VIEW, uri); | |
ResolveInfo resolveInfo = getPackageManager().resolveActivity(intent, 0); | |
if (resolveInfo == null) { | |
// There is no market | |
} else { | |
startActivity(it); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment