title: Unable to resume activity since the database is closed
body: <p>I am using rawQuery method to get the list of data as Cursor and using startManagingCursor() and stopManagingCursor() method. There is no problem for Activity1 and Activity2 but when I try to go to Activity2 from Activity3 it says <code>04-09 17:37:59.629: E/AndroidRuntime(6509): java.lang.RuntimeException: Unable to resume activity {com.nepways.nlocate/com.nepways.nlocate.BusinessOrganizationActivity}: java.lang.IllegalStateException: database /data/data/com.nepways.nlocate/databases/nLocateDatabaseNew.db already closed
  </code>
  Anyone have some help?
  <br/>
  <strong>UPDATE CODE</strong><br/></p>
  
  <pre><code>    public class BusinessActivity extends Activity implements OnItemClickListener {
  
      private ArrayList&lt;Business&gt; businessList = new ArrayList&lt;Business&gt;();
      private BusinessListAdapter businessListAdapter;
      private ListView lvBusiness;
  
      @Override
      protected void onCreate(Bundle savedInstanceState) {
          super.onCreate(savedInstanceState);
  
          setContentView(R.layout.business_list);
  
          businessList = getIntent().getParcelableArrayListExtra("businessList");
  
          businessListAdapter = new BusinessListAdapter(this, businessList);
  
          lvBusiness = (ListView) findViewById(R.id.lvBusiness);
          lvBusiness.setAdapter(businessListAdapter);
  //      lvBusiness.setOnItemClickListener(this);
      }
  
      @Override
      public void onItemClick(AdapterView&lt;?&gt; arg0, View arg1, int arg2, long arg3) {
          // TODO Auto-generated method stub
  
      }
  
      @Override
      public boolean onCreateOptionsMenu(Menu menu) {
          menu.add("Search").setIcon(R.drawable.ab_search).setShowAsAction(MenuItem.SHOW_AS_ACTION_ALWAYS);
  //      return super.onCreateOptionsMenu(menu);
          return true;
      }
  
      @Override
      public boolean onOptionsItemSelected(MenuItem item) {
          if(item.getTitle().toString().equalsIgnoreCase("Search")) {
              startActivity(new Intent(this, SearchActivity.class));
          }
          return super.onOptionsItemSelected(item);
      }
  
      @Override
      protected void onDestroy() {
          super.onDestroy();
      }
  
      @Override
      protected void onResume() {
          super.onResume();
      }
  
      @Override
      protected void onPause() {
          super.onPause();
      }
  
  }
  </code></pre>