title: onCreate() runs for the first time
body: <p>Is there a code with which I can test if the onCreate() was called for the first time? </p>
  
  <p>for example </p>
  
  <pre><code>if (condition) {
   code that runs if the app runs for the first time 
  }else{
   code that runs if activity is started because of configuration changes, orientation changes...
  } 
  </code></pre>