title: android what to use instead of onRestart() in a fragment
body: <p>I'm dealing with .setVisibility() of a <strong>view</strong>, inside my main fragment at app start.
  So what I want is that the <strong>view</strong> is invisible on app start (for this i set INVISIBLE inside onCreateView) and to be visible when I come back to my fragment from other activities while the app is open (and for this I tried to use onRestart() to set <strong>view</strong> VISIBLE but it cannot resolve onRestart method)
  is onRestart deprecated or?
  thanks</p>
  
  <p><strong>EDIT:</strong> for all the answers below suggesting to use an onResume (and whom gave a -1), onResume doesn't work as onRestart at all, cause is being called right after onCreateView.</p>