How to enable LogCat/Console in Eclipse for Android?

前端 未结 5 1406
太阳男子
太阳男子 2020-11-22 10:37

While working on a simple program in Android, I mistakenly closed LogCat window and I want to know how to show it again.

5条回答
  •  南旧
    南旧 (楼主)
    2020-11-22 11:13

    In Eclipse, Goto Window-> Show View -> Other -> Android-> Logcat.

    Logcat is nothing but a console of your Emulator or Device.

    System.out.println does not work in Android. So you have to handle every thing in Logcat. More Info Look out this Documentation.

    Edit 1: System.out.println is working on Logcat. If you use that the Tag will be like System.out and Message will be your message.

提交回复
热议问题