Why shouldn't I use System.out.println() in android

后端 未结 7 1115
无人共我
无人共我 2020-11-29 07:45

In the Android Open Source Project\'s code style, it states that we shouldn\'t use System.out.println() but I don\'t understand why. Can anyone explain? What sh

相关标签:
7条回答
  • 2020-11-29 08:11

    if we want to trace the android project
    we can do it using Log class
    there is some methods like
    Log.e(TAG,MESSAGE)
    Log.v(TAG,MESSAGE)
    Log.w(TAG,MESSAGE)
    Log.d(TAG,MESSAGE)
    Log.i(TAG,MESSAGE)
    its a static method of Utils package. put it line by line and u can watch it in the LogCat..
    thats at enjoy with android

    0 讨论(0)
提交回复
热议问题