启用从logcat的实际设备日志消息实际、消息、设备、日志

2023-09-05 02:30:13 作者:Forever ° 辰莫

有关我的Andr​​oid应用程序开发,我想从我的实际设备logcat的消息(开始从日食在其上的应用程序时),而不是仅仅从我的模拟器。

For my android app development, I am trying to get logcat messages from my real device (when starting an app on it from eclipse) and not just from my emulator.

是否有人知道如何使这样的功能?

Does someone know how to enable such a feature?

推荐答案

您需要在您的设备上启用USB调试。进入设置,应用程序开发,并勾选USB调试。然后,当您的设备通过USB连接,你可以看到它的名字DDMS就好像是另外一个仿真器。

You need to enable USB Debugging on your device. Go to settings, applications, development and tick "USB Debugging". Then when your device is connected by USB you can see its name in DDMS as if it was another emulator.