title: Is onActivityCreated() called after onViewCreated() in a Fragment?
body: <p>I have two ViewModels. One is used from the Fragment only and the other one is a shared ViewModel from the Activity.</p>
  
  <p>Fragment:</p>
  
  <pre><code>@Override
  public void onCreate(Bundle savedInstanceState) {
      super.onCreate(savedInstanceState);
  
      viewModel = ViewModelProviders.of(this).get(FragmentViewModel.class);
      ...
  }
  
  @Override
  public void onActivityCreated(@Nullable Bundle savedInstanceState) {
      super.onActivityCreated(savedInstanceState);
  
      activityViewModel = ViewModelProviders.of(getActivity()).get(ActivityViewModel.class);
  }
  </code></pre>
  
  <p>But in order to know if I can use the <strong>content</strong> from the activity's ViewModel, I need to know if the <code>onActivityCreated(...)</code> is called after <code>onViewCreated(...)</code> so I can request my data in the Fragment ViewModel based on data I have in the Activity's ViewModel. </p>
  
  <p>To summarise:</p>
  
  <p><strong>Is it for certain that <code>onActivityCreated(...)</code> is called after <code>onViewCreated(...)</code> has finished?</strong></p>