Tran Triet
Tran Triet

Reputation: 1307

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?

Upvotes: 0

Views: 1677

Answers (1)

Geert Berkers
Geert Berkers

Reputation: 731

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)

Upvotes: 4

Related Questions