【发布时间】:2014-07-23 18:20:57
【问题描述】:
我正在寻找一种向自己发送消息以在设备上调试我的应用程序的方法。如果我理解正确LogCat 用于此。但我无法向LogCat 发送/输出消息。
我尝试了以下没有结果:
System.out.println("Message"); //Outputs to console when in desktop app, nothing on device.
Log.i + Log.d + Log.w //These methods do not exist. And i cannot get `Log` to work in any other way.
Debug.println("Msg1", "Msg2"); //Ends up in a error on device.
我只是想在我的手机上给自己发送“调试”消息,比如点击坐标。如果此目的不需要LogCat,我不一定需要它。
【问题讨论】:
-
Log.d(String tag, String message) 方法有什么问题?
-
他正在使用 LibGDX,它不允许您直接访问该 API。我在我的回答中指出了他应该使用哪些方法。
-
我是这里唯一一个从 system.out.println 登录 android 的人?
标签: android eclipse debugging libgdx logcat