title: How to lanch an activity with parameters?
body: <p>I have created an Activity class and defined a constructor: </p>
  
  <pre><code>   public class Spinner_Name extends Activity{
  
          List&lt;String&gt; listSp;
          public Spinner_Name(List&lt;String&gt; list)
          {
              listSp = new ArrayList&lt;String&gt;();
              listSp = list;
          }
  
  
          @Override
          public void onCreate(Bundle savedInstanceState)
          {
              // TODO Auto-generated method stub
              super.onCreate(savedInstanceState);
              setContentView(R.layout.spinner_layout);
  
          }
  }
  </code></pre>
  
  <p>And I want to call that Activity from this Activity:</p>
  
  <pre><code> public class MAIN extends Activity{
  
              List&lt;String&gt; listSp;
  
  
              @Override
              public void onCreate(Bundle savedInstanceState)
              {
                  // TODO Auto-generated method stub
                  super.onCreate(savedInstanceState);
                  setContentView(R.layout.spinner_layout);
                   listSp = new ArrayList&lt;String&gt;();
                    listSp.add("a");
  
              }
      }
  </code></pre>
  
  <p>But when I run the application this message shows up:</p>
  
  <blockquote>
    <p>Unfortunately, Main has been stopped</p>
  </blockquote>
  
  <p>When I delete the argument from the constructor the application runs successfully. How do I get the activity to run with the argument??</p>