title: When Fragment onActivityCreated called
body: <p>Before Google architecture component and <code>LiveData</code> I have not paid attention to <code>onActivityCreated()</code> callback.
  I read about this here in SOF as well in documentation, and i still cannot understand the behavior.</p>
  <p>From one of SOF answers:</p>
  <blockquote>
  <p>As the name states, this is called after the Activity's onCreate() has
  completed.</p>
  </blockquote>
  <ul>
  <li><p>In which conditions <code>onActivityCreated()</code> <strong>called</strong> and when <code>onActivityCreated()</code> <strong>not called</strong>?</p>
  </li>
  <li><p>is it possible that <code>onCreateView()</code> called but <code>onActivityCreated()</code> not called?</p>
  </li>
  </ul>
  <p>It common practice to attach <code>LiveData</code> observers in <code>onActivityCreated()</code>, so i guess there are significant difference between <code>onActivityCreated()</code> and <code>onCreateView()</code>?</p>
  <p>Although looking on the diagram from official Android docs seems like it <code>onActivityCreated()</code> is called <strong>always</strong> after <code>onCreateView()</code>(in terms of execution, not order) and there no diffrence?</p>
  <p>Something confusing here.</p>
  <p><a href="https://i.stack.imgur.com/M31PF.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/M31PF.png" alt="enter image description here" /></a></p>
  <p><strong>UPDATE:</strong>
  <code>onActivityCreated()</code> deprecated.</p>