title: how to load image with Universal ImageLoader without displaying
body: <p>I'm trying to do something like this:
  <a href="https://stackoverflow.com/questions/14811579/android-map-api-v2-custom-marker-with-imageview">Android Map api v2 Custom marker with ImageView</a>
  But I'm stuck on using image loader. </p>
  
  <p>Trying:  </p>
  
  <pre><code>Bitmap bmImg = imageLoader.loadImageSync(url);
  </code></pre>
  
  <p>LogCat gives me</p>
  
  <pre><code> 04-13 14:11:44.953: E/ImageLoader(18542): android.os.NetworkOnMainThreadException
  </code></pre>
  
  <p>Here's is my code. I have an ArrayList camera with all information needed (titrle, position, url, etc).</p>
  
  <pre><code>public void drawPicsOnMap()
  {                       
      String title = null;
      String place = null;        
      for (int i = 0; i&lt;camera.size(); i++)
      {
          Bitmap.Config conf = Bitmap.Config.ARGB_8888;
          Bitmap bmp = Bitmap.createBitmap(80, 80, conf);
          Canvas canvas = new Canvas(bmp);
  
          // paint defines the text color,
          // stroke width, size
          Paint color = new Paint();
          color.setTextSize(35);
          color.setColor(Color.BLACK);
  
          Camera cam = camera.get(i);
          LatLng coord = new LatLng(cam.lat, cam.lon);
  
          title = Integer.toString(cam.id);
          place = cam.place;                                  
  
          String url = cam.img;
          Bitmap bmImg = imageLoader.loadImageSync(url);
  
          //modify canvas
          canvas.drawBitmap(bmImg, 0,0, color);
          canvas.drawText(title, 30, 40, color);
  
          Marker mark = map.addMarker(new MarkerOptions()
          .position(coord)
          .title(title)
          .snippet(place)
          .icon(BitmapDescriptorFactory
                  .fromBitmap(bmp)));
  
          markers.put(mark.getId(), url);
      }
  }
  </code></pre>