title: Activity vs Fragment Lifecycle
body: <p>I am working on new application where I am using <code>Activity</code> and <code>Fragment</code>. Any main difference between them ??</p>
  
  <h2>Update</h2>
  
  <p>I found good answer which I wanted in Android docs.</p>
  
  <p>Docs described </p>
  
  <blockquote>
    <p>The most significant difference in lifecycle between an activity and a fragment is how one is stored in its respective back stack. An activity is placed into a back stack of activities that's managed by the system when it's stopped, by default (so that the user can navigate back to it with the Back button, as discussed in Tasks and Back Stack). However, a fragment is placed into a back stack managed by the host activity only when you explicitly request that the instance be saved by calling addToBackStack() during a transaction that removes the fragment.</p>
  </blockquote>
  
  <p>Does host <code>Activity</code> keep different back stack of different <code>Fragment</code> associated with it and any scenario where your single application keep multiple stacks. ??</p>