title: How to pass an ArrayList to the StartActivityForResult activity
body: <p>I need to from Activity A start an Activity B for result. I need to pass a String ArrayList  from Activity A to Activity B first. I thought that this code would work but it crashes the app with a message that the list was not passed:</p>
  
  <p>Activity A:</p>
  
  <pre><code>Intent intent = new Intent(MainActivity.this,PopUpRunda.class);
  Bundle sendList = new Bundle();
  sendList.putStringArrayList("list",listA);
  startActivityForResult(intent,2,sendList);
  </code></pre>
  
  <p>Activity B:</p>
  
  <pre><code>Bundle gotList = getIntent().getExtras();
  ArrayList&lt;String&gt; listB = gotList.getStringArrayList("list");
  </code></pre>