Recently instead of android query I started to using library for android (maybe some post will be created in future ;) ) to manage network stuff. It’s too early to say about good and bad points of using it but amount of code which you need to write is really small, so check it out yourself!
As always I use gson library to parse json but with android query it was obvious how to show json in respone. With retrofit it took me a while to look for solution but I’ve found it. You simply need to add
LogLevel to your
Here’s an example:
1 2 3 4 5 6 7 8 9
public static final ApiService API = new RestAdapter.Builder() .setEndpoint(AppUrls.API_V1) .setLogLevel(RestAdapter.LogLevel.FULL) .setConverter(new ApiGsonConverter()) .setRequestInterceptor(new ApiRequestInterceptor()) .setErrorHandler(new ApiErrorHandler()) .setProfiler(new ApiProfiler()) .build() .create(ApiService.class);
After that json will be logged to android console.
Hope it helps!