Skip to content

Instantly share code, notes, and snippets.

@angeldevil
Created January 7, 2014 06:38
Show Gist options
  • Save angeldevil/8295481 to your computer and use it in GitHub Desktop.
Save angeldevil/8295481 to your computer and use it in GitHub Desktop.
Let user mark our App from market
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