Logcat and logcat do not display information
Logcat
I. Introduction
Very useful log tools
Ii. Common Operations
1. Select logs of the corresponding level
2. Add a LOG filter.
Iii. code example
Create a log filter
The following code runs the log results
Com. fry. logcatTest. MainActivity
1 package com. fry. logcatTest; 2 3 4 5 6 7 import android. app. activity; 8 import android. content. intent; 9 import android. OS. bundle; 10 import android. util. log; 11 import android. view. view; 12 import android. view. view. onClickListener; 13 import android. widget. button; 14 15 16 17 public class MainActivity extends Activity {18 protected void onCreate (Bundle savedInstanceState) {19 super. onCreate (savedInstanceState); // action of the parent class 20 setContentView (R. layout. activity_main); // introduce the interface named activity_main.21 Log. v ("MainActivity", "v"); 22 Log. d ("MainActivity", "d"); 23 Log. I ("MainActivity", "I"); 24 Log. w ("MainActivity", "w"); 25 Log. e ("MainActivity", "e ");26} 27}