Skip to content

Commit 8973778

Browse files
committed
Update README.md
1 parent 03724c1 commit 8973778

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

README.md

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,9 +40,7 @@ The `ProxerConnection` also provides several other methods:
4040

4141
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.
4242

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()`
4644

4745
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.
4846

0 commit comments

Comments
 (0)