Output of implementing information in Android
Java General printing method for System.out.println (""); J2ME Also, you can see the effect in the IDE's console.
But Android platform, System.out.println (""); you can't see the printed message. Because Android provides a way to print, LOG.V, the object needs to be imported into import android.util.Log, and then it can be used. Look at the effect, not in the IDE's console panel, but in the log panel provided by Android, you can select debug mode in the upper right corner of the IDE to view the log panel.
Below is the test code written for this tutorial,
Package com.google.android.testlog;
Import android.app.Activity;
Import Android.os.Bundle;
Import Android.util.Log;
/**
* Test information output;
*/
public class Testlog extends Activity {
/** called when the activity is first created. */
@Override
public void OnCreate (Bundle icicle) {
Super.oncreate (Icicle);
Setcontentview (R.layout.main);
LOG.V ("Debug", "Message ......"); Output information;
}
}
Java, the output of Android information