title: How can I resume an Activity without reloading and processing its data all over again?
body: <p>I have some list activities, one leading to the other. Whenever I press return and return to the previous list activity and then back again to this activity again, it does the whole onCreate processing all over again.</p>
  
  <p>How can I make it remember the data that was loaded on to the list?</p>
  
  <pre><code>public class Modules extends ListActivity {
      PortalHandler portalHandler;
      Login login;
      ArrayList&lt;String&gt; menuItems;
      Document portal;
      String portalHtml;
      Elements modules;
  
      @Override
      protected void onCreate(Bundle savedInstanceState) {
  
          super.onCreate(savedInstanceState);
          menuItems = new ArrayList&lt;String&gt;();
          Bundle extras = getIntent().getExtras().getBundle("extras");
          portalHtml = extras.getString("portalHtml");
          portal = Jsoup.parse(portalHtml);
          modules = portal.select(".courselink ");
          for (int i = 0; i &lt; modules.size(); i++) {
              menuItems.add(modules.get(i).text()
                      .substring(0, modules.get(i).text().indexOf("(")));
          }
          setListAdapter(new ArrayAdapter&lt;String&gt;(this, R.layout.modules,
                  menuItems));
          ListView listView = getListView();
          listView.setTextFilterEnabled(true);
  
          listView.setOnItemClickListener(new OnItemClickListener() {
              public void onItemClick(AdapterView&lt;?&gt; parent, View view,
                      int position, long id) {
  
              }
          });
  
      }
  
  }
  </code></pre>