Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

android studio Logcat shows json data in single line and part of data

I used Logcat to show json data in android studio, but it just showed in single line and it couldn't show the whole json data. So how should I do can make Logcat show the whole json data in multi-line like eclipse?

Thanks for help!

like image 312
Alan W. Avatar asked Nov 01 '15 14:11

Alan W.


People also ask

How do I use logcat in Android Studio?

Logcat window in Android Studio is used to display real-time system messages and messages that are added in the Log class of the app. To open Logcat Click View > Tool Windows > Logcat (Alt + 6 or from the toolbar window). Sometimes logcat shows nothing and it’s completely blank.

How do I view app logs in Android Studio?

As of Android Studio 2.2, the Run window also displays log messages for the current running app. Note that you can configure the logcat output display, but not the Run window. To display the log messages for an app: Build and run your app on a device. Click View > Tool Windows > Logcat (or click Logcat in the tool window bar).

What is an Android logcat message format?

Logcat message format. Every Android log message has a tag and a priority associated with it. The tag of a system log message is a short string indicating the system component from which the message originates (for example, ActivityManager).

What is the use of JSON in Android?

JSON is shorter, quicker and easier way to interchange data from server. JSON is great success and most of the API available support JSON format. Android Provide us four different classes to manipulate JSON data. These classes are JSONObject, JSONArray, JSONStringer and JSONTokenizer.


1 Answers

Try using the Soft Wraps. Turn it on in the Android Monitor tool window. That should make it wrap the content.

enter image description here

like image 70
Henry Avatar answered Sep 23 '22 09:09

Henry