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
+1-3Lines changed: 1 addition & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -40,9 +40,7 @@ The `ProxerConnection` also provides several other methods:
40
40
41
41
These methods will cancel all current request of a specified type. E.g. all login-requests. The difference between `cancel()` and `cancelSync()` is the same as with the `execute()` methods.
42
42
43
-
#### `init()` and `cleanup()`
44
-
45
-
You *must* call `init()` somewhere in the android lifecycle. The `onCreate()` method of your main activity is recommended for that. If you do not do that, you may get weird Exceptions if a request was unsuccessful.
43
+
#### `cleanup()`
46
44
47
45
The `cleanup()` method is optional, but recommended. It cancels all the active requests and frees up the memory for the java garbage collection. A good place to call this is the `onDestroy()` method of your main Activity.
0 commit comments