【发布时间】:2013-06-19 16:05:46
【问题描述】:
我有两部智能手机,一部是 Nexus 4,一部是 Vodafone Smart 3 (TLC - Alcatel v975)。在我的源代码中,我有两个 log.d,如果我在 Nexus 上进行调试,log.d 会出现在 Logcat 中,但是当我使用 Vodafone Smart 3 时,log.d 不会出现在 Logcat 中......我的源代码是以下:
public void savetime(View view){
Integer hour= mitsos.getCurrentHour();
Integer minutes=mitsos.getCurrentMinute();
Log.d("mitsos","hour "+hour);
Log.d("mitsos","minutes"+minutes);}
【问题讨论】:
-
“调试日志被编译,但在运行时被剥离”。引用developer.android.com/reference/android/util/Log.html。 “始终保留错误、警告和信息日志”。使用
Log.i()。 -
为什么它只发生在我的 Vodafone smart 3 上而不是 Nexus 上?!
-
不知道还没遇到这种情况/
标签: java android eclipse android-sdk-tools android-debug