title: How do I specify which string of an ArrayAdapter to use for a ListFragment?
body: <p>I have a simple ListFragment to display a list of custom objects.</p>
  
  <p><code>MyListFragment extends ListFragment</code></p>
  
  <pre><code>private ArrayList&lt;CustomObject&gt; mArrayOfCustomObject;
  private ArrayAdapter&lt;CustomObject&gt; mAdapter;
  
  mAdapter = new ArrayAdapter&lt;CustomObject&gt;(context,
      android.R.layout.simple_list_item1,
      mArrayOfCustomObject);
  setListAdapter(mAdapter);
  </code></pre>
  
  <p>The problem is that I get a long list that looks like this:</p>
  
  <pre><code>com.example.CustomObject@40XXXXXX
  com.example.CustomObject@40XXXXXX
  com.example.CustomObject@40XXXXXX
  com.example.CustomObject@40XXXXXX
  ....
  </code></pre>
  
  <p>I am doing it this way because I want to be able to click on an item and display more information about it. This is why I'm linking the adapter to a <code>List&lt;CustomObject&gt;</code> rather than <code>List&lt;String&gt;</code>.</p>
  
  <p><strong>I know that a <code>List&lt;String&gt;</code> would display it correctly, but then each item would just be a random string with no connection to it's CustomObject.</strong></p>
  
  <p>What's the best way to solve this?</p>