登录android开发 [英] Log in android development
本文介绍了登录android开发的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我使用 android.util.Log
进行日志记录在我的Android应用程序。总之我的code是为
I am using android.util.Log
for logging purposes in my Android application. In short my code is as
import android.util.Log;
...
private static final String TAG = "myActivity"; // Creating a tag
...
public void onCreate(Bundle savedInstanceState) {
....
Log.i(TAG,"My INFO_msg should be print ");
}
问题是,当我的应用程序运行时,该日志消息未出现在控制台窗口。难道是印在另一个窗口?如果我的工作是在控制台窗口打印日志消息,然后会是怎样的过程。
The problem is that, when my application runs, this LOG message doesn't appear on the console window. Is it printed on another window ? If my work is to print LOG messages on console window then what will be the process.
推荐答案
您可以在LogCat中窗口中找到它(窗口>显示视图>其他的Android> logcat的)
You can find it in the LogCat window (Window > Show view > Other, Android > Logcat)
这篇关于登录android开发的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文