Commits

Giulio Piancastelli committed a2c6f94

Complete termination/destruction part of lifecycle.

Comments (0)

Files changed (1)

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

 	}
 	
 	@Override
+	protected void onPause() {
+		super.onPause();
+		log("ON_PAUSE");
+	}
+	
+	@Override
+	protected void onStop() {
+		super.onStop();
+		log("ON_STOP");
+	}
+	
+	@Override
 	protected void onDestroy() {
-		// TODO Auto-generated method stub
 		super.onDestroy();
-	}
-
-	@Override
-	protected void onPause() {
-		// TODO Auto-generated method stub
-		super.onPause();
+		log("ON_DESTROY");
 	}
 
 	@Override
 		super.onRestart();
 	}
 
-	@Override
-	protected void onStop() {
-		// TODO Auto-generated method stub
-		super.onStop();
-	}
-	
 	private void log(String method) {
 		Log.i(TAG, method + " " + getClass().getSimpleName());
 	}