开发者

Logging in Eclipse/Android

开发者 https://www.devze.com 2023-01-25 20:41 出处:网络
I am trying to log in eclipse in a very simple test app.I have the following: public class Test extends Activity {

I am trying to log in eclipse in a very simple test app.I have the following:

public class Test extends Activity {



    /** Called when the activity is first created. */
    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.main);
        Log.i("FSDSFS","JJJJJJ");


    }
}

I have imported the log via import android.util.Log; and am looking in the LogCat,but I see nothing at all.I clicked on the I with a circle around it in LogCat.

What开发者_开发百科 could I be doing wrong here?

Thanks


In DDMS, click on the Devices button (a tiny mobile phone icon) then select the emulator or device from the list. And here you go. :-)

0

精彩评论

暂无评论...
验证码 换一张
取 消