Skip to content

Instantly share code, notes, and snippets.

@oscarb
Created October 4, 2016 11:54
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save oscarb/f45be6c3970b636d647d7d249be3b82f to your computer and use it in GitHub Desktop.
Save oscarb/f45be6c3970b636d647d7d249be3b82f to your computer and use it in GitHub Desktop.
Log Android activity cycle
public void onStart()
{
super.onStart();
Log.d(TAG, "In the onStart() event");
}
public void onRestart()
{
super.onRestart();
Log.d(TAG, "In the onRestart() event");
}
public void onResume()
{
super.onResume();
Log.d(TAG, "In the onResume() event");
}
public void onPause()
{
super.onPause();
Log.d(TAG, "In the onPause() event");
}
public void onStop()
{
super.onStop();
Log.d(TAG, "In the onStop() event");
}
public void onDestroy()
{
super.onDestroy();
Log.d(TAG, "In the onDestroy() event");
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment