title: startActivityForResult(Intent intent, int requestCode, Bundle options) how to retrieve the extra bundle option?
body: <p>According to the Android documentation <a href="https://developer.android.com/reference/android/app/Activity.html#startActivityForResult(android.content.Intent,%20int,%20android.os.Bundle)" rel="nofollow noreferrer">public void startActivityForResult (Intent intent, int requestCode, Bundle options)</a>. </p>
  
  <p>I can not figure it out how to retrieve the extra bundle options that I am passing on the intent.</p>
  
  <p>I want to pass an ArrayList with data as an extra bundle option when I am calling the startActivityForResult method.</p>
  
  <p>Sample of code:</p>
  
  <pre><code>ArrayList&lt;String&gt; list = new ArrayList&lt;&gt;();
          list.add("test1");
          list.add("test2");
  
          Bundle bundleOptions = new Bundle();
          bundleOptions.putStringArrayList("key", list);
  
  startActivityForResult(intent, 10, bundleOptions);
  </code></pre>
  
  <p>Upon retrieving the data:</p>
  
  <pre><code>@Override
      protected void onActivityResult(int requestCode, int resultCode, Intent data)
  
  Bundle extras = data.getExtras();
  </code></pre>
  
  <p>Bundle extras does not contain the extra bundle that I am trying to pass. What I am missing and I can not retrieve the extra Bundle data that I am passing to the method?</p>
  
  <p>I also tried with <code>intent.putExtra("key", bundleOptions);</code>, also with <code>intent.putExtra("key", list);</code> but with no success either and calling the method <code>startActivityForResult(intent, 10);</code> but again with no success.</p>
  
  <p>I am sure that I am missing something does anybody know how to achieve this?</p>