Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我不擅长硬件概念。所以我有这个可能非常愚蠢的怀疑。
我想将日志添加到我的应用程序。在模拟器上运行时,我知道在哪里可以看到日志输出——它在 Eclipse 的 Logcat 窗口中可见。
我想知道当我在硬件设备上运行它时在哪里可以看到这些日志。我正在使用以下命令将我的应用程序加载到设备上:./adb install helloWorld.apk
./adb install helloWorld.apk
那么日志将在哪里创建以及以什么名称创建?
如果问题含糊不清或愚蠢,请道歉。我真的不知道更多细节。
-琪琪
尝试使用:
./adb logcat
当您在设备上运行时,日志也可以在 LogCat 中使用。您需要在您的设备中打开 USB 调试 ( Settings > Applications > Development > USB Debugging),然后您可以像在模拟器中一样使用 LogCat,无论是使用./adb logcat还是在 Eclipse 中。
Settings > Applications > Development > USB Debugging