LogCat - Does not appear [closed]

1

I'm doing Example5 of cap 3 of the Google Android 3rd book (Ricardo R.Lecheta), where applying a filter to display in the logcat. but it's not coming back to me.

package br.livro.android.cap3;

import android.app.Activity;
import android.os.Bundle;
import android.util.Log;


public class Exemplo5 extends Activity {
    private static final String CATEGORIA = "livro";

    @Override
    public void onCreate(Bundle icicle) {
        super.onCreate(icicle);

        setContentView(R.layout.main);

        // Verbose
        Log.v(CATEGORIA, "log de verbose");

        // Debug
        Log.d(CATEGORIA, "log de debug");

        // Info
        Log.i(CATEGORIA, "log de info");

        // Warn
        Log.w(CATEGORIA, "log de alerta");

        // Error
        Log.e(CATEGORIA, "log de erro", new RuntimeException("teste de erro"));
    }
}

    
asked by anonymous 03.08.2014 / 19:14

1 answer

1

Try to open the DDMS perspective (on top right), and select the device you want to view the LogCat Output.

Example: Selecting device "015DC1F50600" to display LogCat.

    
09.08.2014 / 19:54