Skip to content

Commit feef236

Browse files
authored
An Android alternative for disabling the auto-init mode, but a bit more performant (#1790)
1 parent 93d11a1 commit feef236

File tree

1 file changed

+11
-0
lines changed
  • src/collections/_documentation/platforms/android

1 file changed

+11
-0
lines changed

src/collections/_documentation/platforms/android/index.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,17 @@ To initialize the SDK manually, disable the auto initialization. You can do so b
8787
</application>
8888
```
8989

90+
Or, to completely remove the merging of the `ContentProvider`:
91+
92+
```xml
93+
<application>
94+
<provider
95+
android:name="io.sentry.android.core.SentryInitProvider"
96+
android:authorities="${applicationId}.SentryInitProvider"
97+
tools:node="remove" />
98+
</application>
99+
```
100+
90101
The next step is to initialize the SDK directly in your code.
91102

92103
The SDK can catch errors and crashes only after you've initialized it. So, we recommend calling `SentryAndroid.init` in the instance of the Application class right after the application is created.

0 commit comments

Comments
 (0)