title: error: method onCreate(Bundle) is already defined in class MainActivity
body: <p>I'm pretty new to android development. I'm aware I shouldn't use duplicate <code>onCreate()</code>, but I don't know how to do this than. I'm creating two spinners from sqlite database on the same layout.</p>
  
  <p>My code is:</p>
  
  <pre><code>import android.app.Activity;
  import android.os.Bundle;
  import android.widget.ArrayAdapter;
  import android.widget.Spinner;
  
  import java.util.ArrayList;
  
  public class MainActivity extends Activity {
  
      @Override
      protected void onCreate(Bundle savedInstanceState) {
          super.onCreate(savedInstanceState);
          setContentView(R.layout.activity_main);
          // Create DataHelper object and insert some sample data
          DataHelper datahelper = new DataHelper(this);
  
          datahelper.insertBreed ("Beagle");
          datahelper.insertBreed ("Bulldog");
          datahelper.insertBreed ("Chow Chow");
  
          // Get sample data from the database and display them in the spinner
          Spinner spinner = (Spinner) findViewById(R.id.spinnerBreeds);
          ArrayList&lt;String&gt; list = datahelper.getAllBreeds();
          ArrayAdapter&lt;String&gt; adapter = new ArrayAdapter&lt;String&gt;(this, R.layout.spinner_layout, R.id.text, list);
          spinner.setAdapter(adapter);
      }
  
  
      @Override
      protected void onCreate(Bundle savedInstanceState) {
          super.onCreate(savedInstanceState);
          setContentView(R.layout.activity_main);
          // Create DataHelper object and insert some sample data
          DataHelper2 datahelper2 = new DataHelper2(this);
  
          datahelper2.insertAge("1");
          datahelper2.insertAge ("2");
          datahelper2.insertAge("3");
  
          // Get sample data from the database and display them in the spinner
          Spinner spinner = (Spinner) findViewById(R.id.spinnerAge);
          ArrayList&lt;String&gt; list = datahelper2.getAllAge();
          ArrayAdapter&lt;String&gt; adapter = new ArrayAdapter&lt;String&gt;(this, R.layout.spinner_layout, R.id.text, list);
          spinner.setAdapter(adapter);
      }
  }
  </code></pre>