Open activity from shuffled list view
<p>So basically I want this list view to be shuffled so it is always random. But each one needs to open up its own activity and be constant no matter where it is in the list view (so I'm pretty sure I can't use position.) So I tried using the (TextView) view).getText() and it isn't reading it as it does in the Toast. Any ideas?</p>

<pre><code>public class Bands extends ListActivity{
int numBands;

@Override
public void onCreate(Bundle savedInstanceState) {
  super.onCreate(savedInstanceState);



  final ArrayList&lt;String&gt; bands = new ArrayList&lt;String&gt;();
    bands.add(new String("Band0"));
    bands.add(new String("Band1"));
    bands.add(new String("Band2"));

    Collections.shuffle(bands);

  setListAdapter(new ArrayAdapter&lt;String&gt;(this, R.layout.item_list, bands));

  ListView lv = getListView();
  lv.setTextFilterEnabled(true);

  lv.setOnItemClickListener(new OnItemClickListener() {
    public void onItemClick(AdapterView&lt;?&gt; parent, View view,
        int position, long id) {
      // When clicked, show a toast with the TextView text
      Toast.makeText(getApplicationContext(), ((TextView) view).getText(),
          Toast.LENGTH_SHORT).show();
      if( ((TextView) view).getText() == "Band0"){
            Intent i = new Intent(Bands.this, Audio.class);
            i.putExtra("Band", 0);
            startActivity(i);
        }

    }

  });
}
</code></pre>

<p>}</p>

<p>Anyone know a way to read the number order the shuffle creates? Cause that could be a way if someone knows how. Thanks and any help is appreciated.</p>
