title: What is a OnCreate method in android
body: <h2>I am new to android trying to understand what the below method does</h2>
  
  <pre><code>public void onCreate(Bundle savedInstanceState)
  {
          super.onCreate(savedInstanceState);
          // load the layout
          setContentView(R.layout.filters); 
  }
  </code></pre>
  
  <p><strong>My research</strong> ::</p>
  
  <ul>
  <li>onCreate is used to start an activity</li>
  <li>super is used to call the parent class constructor</li>
  <li>setContentView is used to set the xml</li>
  </ul>
  
  <hr>
  
  <p>But what is this all together - </p>
  
  <ul>
  <li><code>onCreate(Bundle savedInstanceState)</code> .... why did that bundle come
  there, what is it</li>
  <li>What is that <code>super.onCreate(savedInstanceState);</code></li>
  </ul>
  
  <p><strong>some explanation in layman terms would be helpful</strong></p>