You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+7-17Lines changed: 7 additions & 17 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,24 +2,13 @@
2
2
3
3
WhatTheStack is a library to make your debugging experience on Android better.
4
4
5
-
WhatTheStack shows you a pretty error screen when your Android App crashes, instead of a boring old dialog saying "Unfortunately, \<your-app\> has crashed".
5
+
It shows you a pretty error screen when your Android App crashes, instead of a boring old dialog saying "Unfortunately, \<your-app\> has crashed".
6
6
7
7
## Setup
8
8
9
-
All that is needed to initialize this library is to use the `init()` method in the `onCreate()` callback of your custom Application class.
9
+
WhatTheStack initializes automatically when your app starts. Just follow the [Installation Instructions](#installation) to set it up.
10
10
11
-
```kotlin
12
-
classMyApp : Application() {
13
-
overridefunonCreate() {
14
-
super.onCreate()
15
-
if (BuildConfig.DEBUG) {
16
-
WhatTheStack(this).init()
17
-
}
18
-
}
19
-
}
20
-
```
21
-
22
-
And when an error is thrown in your application, you shall be greeted with a screen similar to this:
11
+
Now when an uncaught exception is thrown in your application, you shall be greeted with a screen similar to this:
0 commit comments