Skip to content

Commit 2218868

Browse files
committed
feat: Add instructions to disable automatic startup
1 parent 0a9ddb1 commit 2218868

File tree

1 file changed

+14
-1
lines changed

1 file changed

+14
-1
lines changed

README.md

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,25 @@ It shows you a pretty error screen when your Android App crashes, instead of a b
66

77
## Setup
88

9-
WhatTheStack initializes automatically when your app starts. Just follow the [Installation Instructions](#installation) to set it up.
9+
Follow the [Installation Instructions](#installation) to set it up.
1010

1111
Now when an uncaught exception is thrown in your application, you shall be greeted with a screen similar to this:
1212

1313
<img src="media/screenshot.jpeg" width="360px" height="640px"/>
1414

15+
### Disabling automatic initialization
16+
17+
`WhatTheStack` initializes automatically when your application starts. It accomplishes this using a `ContentProvider`.
18+
19+
If you want to disable automatic initialization, you should disable the initialization content provider of this library by adding the following lines to your application's `AndroidManifest.xml` file:
20+
21+
```xml
22+
<provider
23+
android:name="com.haroldadmin.whatthestack.WhatTheStackInitProvider"
24+
android:authorities="${applicationId}.WhatTheStackInitProvider"
25+
tools:node="remove" />
26+
```
27+
1528
## Under the hood
1629

1730
This library works by setting a default `UncaughtExceptionHandler` on your app, and running a service to receive notifications about these exceptions.

0 commit comments

Comments
 (0)