title: Show Android Map Markers in ListView
body: <p>I am trying to show a list view with all of my map markers titles and snippets.  I have everything working except that the data showing the marker info isn't showing correctly.  Any help?</p>
  
  <pre><code>import java.util.ArrayList;
  
  import android.app.Activity;
  import android.os.Bundle;
  import android.widget.ArrayAdapter;
  import android.widget.ListView;
  
  import com.google.android.gms.maps.model.Marker;
  
  public class FarmMarketList extends Activity
  {
      ListView marketList;
      ArrayList&lt;Marker&gt; markets;
      ArrayAdapter&lt;Marker&gt; listAdapter;
  
      public void onCreate(Bundle savedInstanceState)
      {
          super.onCreate(savedInstanceState);
          setContentView(R.layout.farm_market_list);
          marketList = (ListView) findViewById(R.id.listFarmMarkets);
  
          markets = RSFM.list;
  
          listAdapter = new ArrayAdapter&lt;Marker&gt;(FarmMarketList.this, android.R.layout.simple_list_item_1, markets);
          marketList.setAdapter(listAdapter);
      }
  }
  </code></pre>
  
  <p>Here is where I am adding the markers in the other activity:</p>
  
  <pre><code>for(int i = 0; i &lt; Lat.length; i++)
        {
            Marker marker = map.addMarker(new MarkerOptions()
              .position(new LatLng(Lat[i], Lon[i]))
              .title(Market[i])
              .snippet(Address[i])
              .icon(BitmapDescriptorFactory.defaultMarker(BitmapDescriptorFactory.HUE_AZURE)));
            list.add(marker);
        }
  </code></pre>
  
  <p>Here is how the data is showing in my list view.
  <img src="https://i.stack.imgur.com/pjbkY.png" alt="enter image description here"></p>