Commits

Giulio Piancastelli committed fa0eb9b

See the second activity be paused/stopped/destroyed.

  • Participants
  • Parent commits e68105e
  • Tags double_activity_lifecycle

Comments (0)

Files changed (1)

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

 		super.onResume();
 		log("ON_RESUME");
 	}
+	
+	@Override
+	protected void onPause() {
+		super.onPause();
+		log("ON_PAUSE");
+	}
+	
+	@Override
+	protected void onStop() {
+		super.onStop();
+		log("ON_STOP");
+	}
+	
+	@Override
+	protected void onDestroy() {
+		super.onDestroy();
+		log("ON_DESTROY");
+	}
 
 	private void log(String method) {
 		Log.i(TAG, method + " " + getClass().getSimpleName());