Commits

Giulio Piancastelli committed 7598304

Log Activity creation.

Comments (0)

Files changed (1)

src/it/synergia/courses/android/lifecycle/A.java

 
 import android.app.Activity;
 import android.os.Bundle;
+import android.util.Log;
 
 public class A extends Activity {
+	private static final String TAG = "ANDROID_LIFECYCLE";
+	
     /** Called when the activity is first created. */
     @Override
     public void onCreate(Bundle savedInstanceState) {
         super.onCreate(savedInstanceState);
         setContentView(R.layout.main);
+        Log.i(TAG, "ON_CREATE " + getClass().getName());
     }
 }