Tran Triet Tran Triet - 1 month ago 18
Android Question

Android Log.d does not print whole message

I want

Log.d
to print out a uri so I coded

Log.d(uri.toString(), "TOKEN");


Later on, I run a
split
method on the uri and have
Log.d
print the second half of the original uri. Surprisingly, the printed content was longer than what was printed in the first time.

I think Log.d is not printing the whole uri. How do I make Log.d log out everything in the uri?

Answer

Try it otherwise:

Log.d("TOKEN", uri.toString());

The first parameter is the tag.

The 2nd parameter is the message.

https://developer.android.com/reference/android/util/Log.html#d(java.lang.String, java.lang.String)

Comments