Why shouldn't I use System.out.println() in android
In this code style they said that we shouldn't use System.out.println()
but I don't understand their's idea. can Anyone explain about that? What
should I use to trace the log of my app?
System.out.println() (or printf() for native code) should never be used.
System.out and System.err get redirected to /dev/null, so your print
statements will have no visible effects. However, all the string building
that happens for these calls still gets executed.
No comments:
Post a Comment