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

后端 未结 7 1133
无人共我
无人共我 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:00

    You can use the built in Log utility that will print right out to the LogCat.

    You can use Log.e(String, String) for errors which will appear in red. There is also v, d, i, and w for verbose, debug, info, and warning respectively.

提交回复
热议问题