title: Set marker icon on Google Maps v2 Android from URL
body: <p>I am unable to add the icon provided by the Google Places API to the marker. For example, I would like to have the icon returned from the JSON of Google Places API:</p>
  
  <pre><code>"icon" : "http://maps.gstatic.com/mapfiles/place_api/icons/generic_business-71.png"
  </code></pre>
  
  <p>Here's how I am doing it now without adding the icon:</p>
  
  <pre><code>for (Place place : mNearPlaces.results) {
       LatLng placeLatLng = new LatLng(place.geometry.location.lat,
           map.addMarker(new MarkerOptions()
               .position(placeLatLng)
               .title(place.name));
  }
  </code></pre>
  
  <p>I looked at <a href="https://stackoverflow.com/questions/15549031/unable-to-add-icon-to-marker-map-v2-android">this post</a> and the answer suggested using some AsyncTask to download the image. Is there any other way to do this (that way seems slow)? Is there a standard way of setting the marker image provided by the Google Places API?</p>
  
  <p>Here is the <a href="https://developers.google.com/maps/documentation/android/marker" rel="nofollow noreferrer">Google Maps Android API v2 Documentation for Markers</a> </p>
  
  <p>Thanks</p>