docs: private void startupDialog(String prefs, int message, final Class clazz) {
          final SharedPreferences preferences = getSharedPreferences(prefs, Activity.MODE_PRIVATE);
          final String accepted = "accepted";
          if (!preferences.getBoolean(accepted, false)) {
              AlertDialog.Builder builder = new AlertDialog.Builder(Samples.this);
              builder.setTitle("Warning");
              builder.setMessage(message);
              builder.setPositiveButton(R.string.startup_dontshowagain, new DialogInterface.OnClickListener() {
                  @Override
                  public void onClick(DialogInterface dialog, int which) {
                      preferences.edit().putBoolean(accepted, true).apply();
                      startActivity(new Intent(Samples.this, clazz));
                  }
              });
              builder.show();
          } else {
              startActivity(new Intent(Samples.this, clazz));
          }
      }