title: How to add an element to Arraylist from another activity?
body: <p>In the first_activity.java I have the following:</p>
  
  <pre><code>        ArrayList&lt;String&gt; listItems = new ArrayList&lt;String&gt;();
  </code></pre>
  
  <p>Now in the second_activity.java I want to do the following"</p>
  
  <pre><code>public void Method1(View view) {
  
      listItems.add("text");
      adapter.notifyDataSetChanged();
  
  }
  </code></pre>
  
  <p>Im trying to use a specif string from the second activity and adding it to the ArrayList from the first activity, what is the correct way to do so?</p>