I have an android app that has a ListView as its main activity. When one of the items is clicked, a new activity is launched, showing a detail view. The ListView has an ArrayList of objects of a class that I defined.

Currently I pass in these objects to the detail view activity like so:

```
Intent intent=new Intent(MainActivity.this,DetailActivity.class);
intent.putExtra(TAG,myList.get(position));
startActivity(intent);

```

where 'myList' is a private member variable of MainActivity. However, the detail view takes some time to load, and I am wondering if that is because the objects in 'myList' contain a Bitmap, which may take some time to read. The lag might just be due to the emulator running slowly, I am not sure.

I figured it would be faster to make myList public, and then pass in the position like so:

```
Intent intent=new Intent(MainActivity.this,DetailActivity.class);
intent.putExtra(TAG,position);
startActivity(intent);

```

and then access the object in DetailActivity like this:

```
MyObject object=MainActivity.myList.get(getIntent().getIntExtra(TAG));

```

However, I believe I have read that there is a chance that my MainActivity may be destroyed when DetailActivity starts, and then wouldn't MainActivity.myList be null?