title: Getting ArrayList<Spanned> from OnActivityResult function saved inside Intent
body: <p>I am currently working on an android project and I have an activity that is started using the <code>startActivityForResult()</code> function. </p>
  
  <p>Within this activity I have an ArrayList and I create an Internet and then set the result as the intent, as in the following code.</p>
  
  <pre><code>private void getSearchData()
      {
          ArrayList&lt;Spanned&gt; passwords = null;
          String searchTerm = txtSearch.getText().toString();
          GetSearchResults search = new GetSearchResults(this, searchTerm);
          if (rdoApp.isChecked())
          {
              passwords = search.getData(SearchType.App);
          }
          else if (rdoName.isChecked())
          {
              passwords = search.getData(SearchType.Name);
          }
          else if (rdoUsername.isChecked())
          {
              passwords = search.getData(SearchType.Username);
          }
  
          Intent intent = new Intent();
          intent.putExtra("searchResults", passwords);
          setResult(1, intent);
          finish();
      }
  </code></pre>
  
  <p>In the first activity in the function <code>OnActivityResult</code> I then want to get the ArrayList so that I can process the data. I have the following code so far.</p>
  
  <pre><code>protected void onActivityResult(int requestCode, int resultCode, Intent data)
  {
      common.showToastMessage("Result received", Toast.LENGTH_LONG);
      Bundle bundle = data.getExtras();
  
  }
  </code></pre>
  
  <p>I have no idea where to go from here.</p>