Tran Triet Tran Triet - 1 year ago 98
Android Question

Android Log.d does not print whole message

I want

to print out a uri so I coded

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

Later on, I run a
method on the uri and have
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 Source

Try it otherwise:

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

The first parameter is the tag.

The 2nd parameter is the message., java.lang.String)

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download