diff --git a/docs/platforms/android/manual-setup/index.mdx b/docs/platforms/android/manual-setup/index.mdx index 4a98a3c7261f1..6de84aa4c2bd9 100644 --- a/docs/platforms/android/manual-setup/index.mdx +++ b/docs/platforms/android/manual-setup/index.mdx @@ -80,7 +80,7 @@ Configuration is done via the application `AndroidManifest.xml`. Here's an examp - @@ -124,7 +124,7 @@ Or, to completely remove the merging of the `ContentProvider`: The next step is to initialize the SDK directly in your code. -The SDK can catch errors and crashes only after you've initialized it. For that reason, we recommend calling `SentryAndroid.init` in your Application class as soon as the application is created. If you don't already have a custom Application class, [check out the official docs on how to create one](https://developer.android.com/reference/android/app/Application). +The SDK can catch errors and crashes only after you've initialized it. For that reason, we recommend calling `SentryAndroid.init` once in your Application class as soon as the application is created. Avoid calling it from `Activity.onCreate()` or other activity lifecycle methods. If you don't already have a custom Application class, [check out the official docs on how to create one](https://developer.android.com/reference/android/app/Application). Configuration options will be loaded from the manifest so that you don't need to have the static properties in your code. In the `init` method, you can provide a callback that will modify the configuration and also register new options. @@ -243,4 +243,3 @@ public class MyApplication extends Application { ``` Additional options can be found on our dedicated options page. -