In the Android Studio program, when printing the object, it is cut off due to the length of the data. How can I print the matrix without any cuting?
Question posted in Android Studio
The official documentation can be found here.
The official documentation can be found here.
2
Answers
On the left side of the Logcat window enable the Soft-Wrap:
To print a lengthy string in logcat, use this piece of code. Here
s
is the string which is to be printed. I tried this code where s is given as a sample text of 1000 words and was successfully displayed Logcat.In java,
In Kotlin,
Try this code and hope this works for you.