Created
January 12, 2018 17:59
-
-
Save TOrnelas/f3c0536a66e41a8e8cbba8bc59f7fb19 to your computer and use it in GitHub Desktop.
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
String appPackageName = "com.travelcentral24.yougoto"; | |
try { | |
startActivity(new Intent(Intent.ACTION_VIEW, Uri.parse("market://details?id=" + appPackageName))); | |
} catch (android.content.ActivityNotFoundException anfe) { | |
startActivity(new Intent(Intent.ACTION_VIEW, Uri.parse("https://play.google.com/store/apps/details?id=" + appPackageName))); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment