test
This commit is contained in:
parent
1eaabcbb4a
commit
ca9c5b08ea
2 changed files with 3 additions and 3 deletions
|
@ -378,7 +378,7 @@ public class MainActivity extends AppCompatActivity implements PostRequestCallba
|
||||||
}, Math.round(codeTimeout * 1000));
|
}, Math.round(codeTimeout * 1000));
|
||||||
}
|
}
|
||||||
} catch (JSONException e) {
|
} catch (JSONException e) {
|
||||||
Log.i("2Exception", e.toString()); // STATIC
|
e.printStackTrace(System.out);
|
||||||
throw new RuntimeException(e);
|
throw new RuntimeException(e);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -51,7 +51,7 @@ public class PostRequest {
|
||||||
Call call = client.newCall(request);
|
Call call = client.newCall(request);
|
||||||
call.enqueue(new Callback() {
|
call.enqueue(new Callback() {
|
||||||
public void onResponse(@NonNull Call call, @NonNull Response response) throws IOException {
|
public void onResponse(@NonNull Call call, @NonNull Response response) throws IOException {
|
||||||
Log.i("RESP", response.toString()); // STATIC
|
Log.i("RESP", response.body() != null ? response.body().string() : ""); // STATIC
|
||||||
onPostExecute(response.body() != null ? response.body().string() : "");
|
onPostExecute(response.body() != null ? response.body().string() : "");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -74,7 +74,7 @@ public class PostRequest {
|
||||||
)
|
)
|
||||||
)));
|
)));
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
Log.i("POSTException", e.toString()); // STATIC
|
e.printStackTrace(System.out);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue