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
+51-78
Original file line number
Diff line number
Diff line change
@@ -1,17 +1,13 @@
1
1
# Android Debug Drawer
2
2
3
-
[](https://gitter.im/palaima/DebugDrawer?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)
`DeviceModule` - common information about your device
16
12
17
13

@@ -50,7 +46,7 @@ Currently 13 modules exist:
50
46
51
47
`TimberModule` - log viewer with sharing feature (requires extra dependency). Thanks [AntonyGolovin](https://github.com/AntonyGolovin) for contributing.
52
48
53
-

49
+

54
50
55
51
`ActionsModule` - any context dependent action (`ButtonAction`, `SwitchAction`, `SpinnerAction`)
56
52
@@ -60,8 +56,15 @@ Currently 13 modules exist:
60
56
61
57

62
58
59
+
`LogsModule` - Logcat and OkHttp network calls interceptor (requires extra dependency). Credits [Sloy](https://github.com/Sloy)
60
+
61
+

62
+
63
+
`NetworkQualityModule` - Error/delay rate managing for network calls (requires extra dependency). Credits [Sloy](https://github.com/Sloy)
You could use `DebugDrawer` or `DebugView` depending on your needs
182
184
183
-
#### Example using `DebugDrawer` (For `DebugView` initialization check [DebugViewActivity](https://github.com/palaima/DebugDrawer/blob/master/app/src/main/java/io/palaima/debugdrawer/app/DebugViewActivity.java))
185
+
#### Example using `DebugDrawer` (For `DebugView` initialization check [DebugViewActivity](https://github.com/palaima/DebugDrawer/blob/master/app/src/main/java/io/palaima/debugdrawer/app/DebugViewActivity.java))
@@ -232,37 +234,8 @@ You could use `DebugDrawer` or `DebugView` depending on your needs
232
234
}
233
235
```
234
236
235
-
### 2. Lifecycle
236
-
If you use `NetworkModule`, `LocationModule`, `FpsModule` or your own which is hooked with BroadcastReceivers you must call `onStart`/`onStop`, `onResume`/`onPause` in your activity
237
+
### 2. `TimberModule`
237
238
238
-
```java
239
-
240
-
@Override
241
-
protectedvoid onStart() {
242
-
super.onStart();
243
-
debugDrawer.onStart();
244
-
}
245
-
246
-
@Override
247
-
protectedvoid onResume() {
248
-
super.onResume();
249
-
debugDrawer.onResume();
250
-
}
251
-
252
-
@Override
253
-
protectedvoid onPause() {
254
-
super.onPause();
255
-
debugDrawer.onPause();
256
-
}
257
-
258
-
@Override
259
-
protectedvoid onStop() {
260
-
super.onStop();
261
-
debugDrawer.onStop();
262
-
}
263
-
```
264
-
265
-
### 3. `TimberModule`
266
239
Don't forget to plant needed log trees in Application class. Tree that is used by `TimberModule` stored in `LumberYard` class.
0 commit comments