1. Giulio Piancastelli
  2. android-activity-lifecycle

Commits

Giulio Piancastelli  committed 7598304

Log Activity creation.

  • Participants
  • Parent commits 8fc9fa0
  • Branches default

Comments (0)

Files changed (1)

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

View file
  • Ignore whitespace
 
 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());
     }
 }