Reputation: 1307
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
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