在屏幕上的Andr​​oid应用程序显示日志消息 [英] Show log messages on screen for Android application

查看:110
本文介绍了在屏幕上的Andr​​oid应用程序显示日志消息的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否有可能在Android应用程序在屏幕上显示日志消息(我打印使用 android.util.Log )?

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?

类似的System.out.println

推荐答案

像其他人所说,你可以使用日志猫。如果你正在使用模拟器或调试设备,可以使用亚行logcat 来查看邮件。在Eclipse中调试的角度来看,有一个窗口,会为你做的。

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.

的另一种方式,不附加调试器,是使用<一href=\"http://www.androidpit.com/en/android/market/apps/app/com.nolanlawson.logcat/CatLog-Logcat-Reader\"相对=nofollow>目录下载 - logcat的阅读器应用

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

这篇关于在屏幕上的Andr​​oid应用程序显示日志消息的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆