https://kotlinlang.org logo
#android
Title
# android
a

Ana Stu

04/29/2018, 2:18 PM
call.enqueue(new Callback<List<Task>>() { @Override public void onResponse(Call<List<Task>> call, Response<List<Task>> response) { if (response.isSuccessful()) { // tasks available } else { // error response, no access to resource? } } @Override public void onFailure(Call<List<Task>> call, Throwable t) { // something went completely south (like no internet connection) Log.d("Error", t.getMessage()); } }
g

gildor

04/30/2018, 1:46 AM
Please use backticks for code, or even better use code snippets for big code samples
2 Views