我用eclipse开发android程序,在DDMS中无法输出System.out.println中的字符串,已经在log中设置System.out,求大神们做下解答

解决方案 »

  1.   

    打开DDMS,按下面步骤添加:
    Flitername:System.out
    by Log Tag:System.out
    换到DDMS视图,在Devices里面点击你运行的模拟器,稍等一会你就会看到Logcat里面就会加载出来Logcat多好,为什么非得用System.out.println打log  真费解
      

  2.   

    大神,我是刚刚开始学习android的,跟着视频上做的使用System.out.println的方式,能不能把您说的Logcat的语句具体说下,这种方式是换行输出的吗?
      

  3.   

    Logcat 是一个输出的面板。就在DDMS中,名字叫做Logcat。
      

  4.   


    必须可以
    android.util.Log常用的方法有以下5个:Log.v() Log.d() Log.i() Log.w() 以及 Log.e() 。根据首字母对应VERBOSE,DEBUG,INFO, WARN,ERROR。
     private static final String TAG = "MyActivity";
     ……
     Log.e(TAG, "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"); 
      

  5.   

    用Logcat。添加System.out过滤器。1楼正解
      

  6.   

    eclipse里面,window-->show view-->other-->android-->logcat
      

  7.   

    你用 System.out.println(); 输出的看不到。打 log 用 Log.i("xx" ,"xxxxxx"); 。
    还有 Log.w() 等。