code: public static Intent newMarketForAppIntent(Context context, String packageName) {
          Intent intent = new Intent(Intent.ACTION_VIEW, Uri.parse("market://details?id=" + packageName));
  
          if (!IntentUtils.isIntentAvailable(context, intent)) {
              intent = new Intent(Intent.ACTION_VIEW, Uri.parse("amzn://apps/android?p=" + packageName));
          }
  
          if (!IntentUtils.isIntentAvailable(context, intent)) {
              intent = null;
          }
  
          if (intent != null) {
              intent.addFlags(Intent.FLAG_ACTIVITY_NO_HISTORY | Intent.FLAG_ACTIVITY_CLEAR_WHEN_TASK_RESET);
          }
  
          return intent;
      }
docs: Intent that should open the app store of the device on the given application
  
  @param context     The context associated to the application
  @param packageName The package name of the application to find on the market
  @return the intent or null if no market is available for the intent