title: When activity will be visible? After onStart() or onResume()?
body: <p><a href="https://developer.android.com/reference/android/app/Activity" rel="nofollow noreferrer">Docs</a> say:</p>
  <blockquote>
  <p>The visible lifetime of an activity happens between a call to <code>onStart()</code> until a corresponding call to <code>onStop()</code>.</p>
  </blockquote>
  <p>Also in <a href="https://developer.android.com/guide/components/activities/activity-lifecycle#onstart" rel="nofollow noreferrer">this one</a> you can see:</p>
  <blockquote>
  <p>The <code>onStart()</code> call makes the activity visible to the user ...</p>
  </blockquote>
  <p>So I thought the UI of Activity must be visible after returning from <code>onStart()</code>.</p>
  <p>Recently, for testing purpose, I put an infinite loop in <code>onResume()</code> and guessed that the UI of Activity must be visible. But the result of starting Activity was a white window without any UI.</p>
  <p>So it seems that UI of Activity will be visible after returning from <code>onResume()</code> instead of returning from <code>onStart()</code>. Is this true? If yes, why docs do say such misleading statements?</p>
  <p>Edit:</p>
  <p>You may think like Công Hải which <a href="https://stackoverflow.com/questions/63186798/when-activity-will-be-visible-after-onstart-or-onresume#comment111734722_63186798">says</a>:</p>
  <blockquote>
  <p>I think the documents mention about window visible not view visible.</p>
  </blockquote>
  <p>But I do not think that &quot;visibility&quot; means above mentioned &quot;white window&quot;; because if you put an infinite loop in <code>onCreate()</code>, result of starting Activity again will be a white window, while as docs say the <code>onCreate()</code> is not in &quot;visible lifetime&quot; of Activity. So &quot;visibility of Activity&quot; must mean another thing than &quot;white window&quot;.</p>
  <p>Edit2</p>
  <p>Alongside official docs, many tutorials say the Activity will be visible by calling <code>onStart()</code> and interactive by calling <code>onResume()</code>. Are they all say incorrect thing without testing?</p>