我在测试阶段使用System.out.println()
在android中记录所有类型的东西,但只有最后一个打印记录到logcat,但这只适用于一种方法,让我说明一下:
的onCreate:
System.out.println("This line isn't visible");
System.out.println("Neither this one, only the third one");
System.out.println("V TEST on create " + savedInstanceState);
的onSave:
System.out.println("TEST on save");
OnRestore中:
System.out.println("how is this possible");
System.out.println("TEST on restore foo 2");
logcat输出:
09-20 16:59:50.773 1125-1125/myapp.ironpath I/System.out: V TEST on create null
09-20 17:01:36.513 1125-1125/myapp.ironpath I/System.out: TEST on save
09-20 17:01:36.922 1125-1125/myapp.ironpath I/System.out: V TEST on create Bundle[{lots of data}]
09-20 17:01:36.942 1125-1125/myapp.ironpath I/System.out: TEST on restore foo 2
所有这些方法都将他们的超级方法称为第一件事,那么问题出在哪里?是不是logcat配置错误?