title: My arraylist resets when I return to previous activity on backbutton pressed
body: <p>I have multiple activities. In my main activity, I have my listview within an arraylist. When I go to the second activity and press the back button on the second activity to return my main activity, my arraylist size becomes zero therefore I am losing my listview entries.</p>
  
  <p>Is there any way to keep my arraylist when I go back to the previous activity?</p>
  
  <p>Note: On the second activity, my code is as follows:</p>
  
  <pre><code>public void onBackPressed(){
  
      Intent intent = new Intent(SecondActivity.this, MainActivity.class);
  
      startActivityForResult(intent, 0);
  
  }
  </code></pre>