import android.util.Log;
private static final String TAG = "MyActivity";
Log.v(TAG, "currentX=" + currentX);
android自带LogCat类。在LogCat控制台是也可以看到Log.v(TAG, "currentX=" + currentX); 输出的信息,不过中文输出会乱码
在eclipse中点击菜单栏,window->Show View 把LogCat显示出来
本文介绍了如何使用 Android 开发中的 LogCat 控制台,并通过示例展示了如何在代码中使用 Android 自带的 Log 类来输出日志信息。此外还提到了在 Eclipse 中查看 LogCat 的方法。
import android.util.Log;
private static final String TAG = "MyActivity";
Log.v(TAG, "currentX=" + currentX);
android自带LogCat类。在LogCat控制台是也可以看到Log.v(TAG, "currentX=" + currentX); 输出的信息,不过中文输出会乱码
在eclipse中点击菜单栏,window->Show View 把LogCat显示出来
1994
1000

被折叠的 条评论
为什么被折叠?