efemoney
10/04/2017, 3:52 PMCall<MyAppResponse> call = api.doStuff();
dialog.setCancelListener(() -> call.cancel()) // Or some other cancellation logic like keeping a list of running calls that are canceled in onDestroy
call.enqueue(new Callback() { ... })