code: public static EvernoteInstallStatus getEvernoteInstallStatus(Context context, String action) {
          PackageManager packageManager = context.getPackageManager();
          Intent intent = new Intent(action).setPackage(PACKAGE_NAME);
  
          List<ResolveInfo> resolveInfos = packageManager.queryIntentActivities(intent, PackageManager.MATCH_DEFAULT_ONLY);
          if (!resolveInfos.isEmpty()) {
              return validateSignature(packageManager);
          }
  
          try {
              // authentication feature not available, yet
              packageManager.getPackageInfo(PACKAGE_NAME, PackageManager.GET_ACTIVITIES);
              return EvernoteInstallStatus.OLD_VERSION;
  
          } catch (Exception e) {
              return EvernoteInstallStatus.NOT_INSTALLED;
          }
      }
docs: Checks if Evernote is installed and if the app can resolve this action.