@Override
  public final void onCreate() {
    super.onCreate();
    try {
      TinkConfig.register();
      aead = getOrGenerateNewKeysetHandle().getPrimitive(Aead.class);
    } catch (GeneralSecurityException | IOException e) {
      throw new RuntimeException(e);
    }
  }
A custom application that initializes the Tink runtime at application startup.
java_src/examples/android/helloworld/app/src/main/java/com/helloworld/TinkApplication.java