Skip to content

Instantly share code, notes, and snippets.

@px-amaac
Created October 5, 2015 22:00
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 px-amaac/33ce918af30570add62c to your computer and use it in GitHub Desktop.
Save px-amaac/33ce918af30570add62c to your computer and use it in GitHub Desktop.
flow and debug statements.
App starts.
fragmentTransaction.add(R.id.main_content_frame, CameraFragment.newInstance(null));
fragmentTransaction.add(R.id.main_content_frame, MapFragment.newInstance(null));
D/MapFragment﹕ onViewCreated
D/CameraFragment﹕ onStart
D/MapFragment﹕ onStart
D/CameraFragment﹕ onResume
D/MapFragment﹕ onResume
show/hide map and camerafragments.
Click on menu item
fragmentTransaction.addToBackStack(null);
fragmentTransaction.replace(R.id.main_content_frame, FeedFragment.newInstance(null);
D/CameraFragment﹕ onPause
D/CameraFragment﹕ onStop
D/CameraFragment﹕ onDestroyView
D/FeedFragment﹕ onCreate
D/FeedFragment﹕ onCreate
D/FeedFragment﹕ onViewCreated
D/FeedFragment﹕ onStart
D/FeedFragment﹕ onResume
backbuttonpressed
D/FeedFragment﹕ onPause
D/FeedFragment﹕ onStop
D/FeedFragment﹕ onDestroyView
D/FeedFragment﹕ onDestroy
D/FeedFragment﹕ onDetach
D/CameraFragment﹕ onViewCreated
D/CameraFragment﹕ onStart
D/CameraFragment﹕ onResume
backpressed again exits app.
D/CameraFragment﹕ onPause
D/MapFragment﹕ onPause
D/CameraFragment﹕ onStop
D/MapFragment﹕ onStop
D/CameraFragment﹕ onDestroyView
D/CameraFragment﹕ onDestroy
D/CameraFragment﹕ onDetach
D/MapFragment﹕ onDestroyView
D/MapFragment﹕ onDestroy
D/MapFragment﹕ onDetach
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment