Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p><strong>First Context (can be Activity/Service etc)</strong></p> <p>You have a few options:</p> <p>1) Use the <a href="http://developer.android.com/reference/android/os/Bundle.html" rel="nofollow noreferrer">Bundle</a> from the <a href="http://developer.android.com/reference/android/content/Intent.html" rel="nofollow noreferrer">Intent</a>:</p> <pre><code>Intent mIntent = new Intent(this, Example.class); Bundle extras = mIntent.getExtras(); extras.putString(key, value); </code></pre> <p>2) Create a new Bundle</p> <pre><code>Intent mIntent = new Intent(this, Example.class); Bundle mBundle = new Bundle(); mBundle.extras.putString(key, value); mIntent.putExtras(mBundle); </code></pre> <p>3) Use the <a href="http://developer.android.com/reference/android/content/Intent.html#putExtra(java.lang.String,%20java.lang.String[])" rel="nofollow noreferrer">putExtra()</a> shortcut method of the Intent</p> <pre><code>Intent mIntent = new Intent(this, Example.class); mIntent.putExtra(key, value); </code></pre> <p><strong>New Context (can be Activity/Service etc)</strong></p> <pre><code>Intent myIntent = getIntent(); // this getter is just for example purpose, can differ if (myIntent !=null &amp;&amp; myIntent.getExtras()!=null) String value = myIntent.getExtras().getString(key); } </code></pre> <p><strong><em>NOTE:</strong> Bundles have "get" and "put" methods for all the primitive types, Parcelables, and Serializables. I just used Strings for demonstrational purposes.</em> </p> <p>Your Arraylist class must be Parcelable or Serializable. So you should subclass it to add these functionalities as I think they miss from the original implementation.</p> <p>Then look into these other questions they will help you. <a href="https://stackoverflow.com/questions/3136922/serialization-issue-with-sortedset-arrays-an-serializable">Serialization issue with SortedSet, Arrays, an Serializable</a></p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload