关于在Logcat中显示System.out 我在Logcat中建的如上图的过滤器,建好后,运行Android程序,可是什么都不显示啊,为什么啊? 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 你的log里面打Syetem.out这样的log了么?你加的过滤器只能检测到Syetem.out输出,如果找不到,当然是空的! Log.i(TAG, "system.out!"); Filter name随便指定,by Log Tag就是你Log.i(TAG,"you log");的第一个参数TAG,是个string类型的字符串,自己定义的标签名.假如这么写Log.i("HELLO","you log");那by Log Tag就是HELLO. 那请问Log.i(TAG,"you log");这个方法是在哪写着呢?onCreate()方法里?还是? 我的表达有误吗? 嗯 是这样的 我看到视频上的老师就是那样建了一个System.out的filter, 然后他在程序里写的System.out.println("");全部都能显示在System.out这个filter里面,我的却不能显示,不知道为什么? Log.i(TAG,"you log");这个是log语句,你在执行你的方法前写就行了,不影响整个执行效果,只是让它输出,让你知道你的程序执行到哪一步了!Filter name:你随便起名就行了但是by Log Tag:必须是你程序里面的log,比如你的log是Log.i("TAG","you log");的话by Log Tag:TAG 是这个问题,不是不显示Log.i的内容,而是System.out.println的内容 Log.i("System.out","这里是你要看的内容") System.out.println(""); 是可以在Logcat里 直接显示出来的 属于 I (Information,绿色字体) 标签是 System.out 就是在filter的tag里写上System.out就行了 在 Log Filter 中 by Log Tag: System.out 就可以了。 System.out.println("")可以,但System.out.print("");不可以 不要选择 Android,选择DDMS,在看LogCat就有显示了 "System.out.println("")可以,但System.out.print("");不可以"--楼主估计问题在这里吧~println是可以显示在System.out中的,而print却不能显示。 我觉得和缓冲区相关:1、System.out.print("Create button is clicked..."); 不会在logcat中输出。2、System.out.print("Create button is clicked...\n"); 可以再logcat中输出。3、System.out.print("Create button is clicked..."); System.out.flush(); 可以再logcat中输出。个人观点,不一定正确,欢迎继续探讨... 没有activity,怎么取屏幕分辨率? android的蓝牙通知移除或者蓝牙广播的屏蔽 程序连接tomcat服务器的问题 关于http 401 请问apk解压后怎么再打包成apk 跪求大侠帮忙,createNormalSurfaceLocked() failed!!! android CAMERA 哪里有Android API 源代码下载 Android服务的启动问题(来者有分) Android已死吗? 大家能发表一下自己对android发展前景的看法么? 把从相册里选出来的图片文件复制到指定目录下怎么弄?
Log.i(TAG, "system.out!");
by Log Tag就是你Log.i(TAG,"you log");的第一个参数TAG,是个string类型的字符串,自己定义的标签名.
假如这么写Log.i("HELLO","you log");
那by Log Tag就是HELLO.
嗯 是这样的
我看到视频上的老师就是那样建了一个System.out的filter,
然后他在程序里写的System.out.println("");全部都能显示在System.out这个filter里面,我的却不能显示,不知道为什么?
Log.i(TAG,"you log");这个是log语句,你在执行你的方法前写就行了,不影响整个执行效果,只是让它输出,让你知道你的程序执行到哪一步了!
Filter name:你随便起名就行了
但是by Log Tag:必须是你程序里面的log,比如你的log是Log.i("TAG","you log");的话
by Log Tag:TAG
是这个问题,不是不显示Log.i的内容,而是System.out.println的内容
--楼主估计问题在这里吧~
println是可以显示在System.out中的,而print却不能显示。
1、System.out.print("Create button is clicked...");
不会在logcat中输出。
2、System.out.print("Create button is clicked...\n");
可以再logcat中输出。
3、System.out.print("Create button is clicked...");
System.out.flush();
可以再logcat中输出。个人观点,不一定正确,欢迎继续探讨...