n1kh1lp n1kh1lp - 1 month ago 11
Android Question

Show log messages on screen for Android application

Is it possible to display the log messages (which I print using

android.util.Log
) on screen in an Android application?

Is there any other better method to just output lines on the screen?

Something like
System.out.println
?

Answer

Like others have suggested, you can use log cat. If you are using the emulator or debugging a device, you can use adb logcat to view the messages. In Eclipse debug perspective, there is a window that will do that for you.

Another way, without a debugger attached, is to use the CatLog - Logcat Reader application.

Comments