INNER CODE UNIT · Java

isStoreInstalled

google/bundletool · src/main/dex_src/com/google/android/archive/ReactivateActivity.java:71

  private boolean isStoreInstalled() {
    try {
      return getPackageManager().getApplicationInfo(appStorePackageName, 0).enabled;
    } catch (NameNotFoundException e) {
      return false;
    }
  }

  private AlertDialog buildErrorDialog() {
    AlertDialog.Builder dialog =
        new AlertDialog.Builder(this)
            .setTitle("Installation failed")
            .setCancelable(false)
            .setNeutralButton("Close", this)
            .setMessage(
                String.format(
                    "To open %s you must first complete its download from an official app store.",
                    getAppName()));

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…