title: Android Google Maps API v2 - how to change marker icon
body: <p>I am trying to change marker icon.
  I get the image from one server directory.</p>
  
  <p>When I put break point every time the "bit" result is <code>null</code>. And when I run the app I get <code>java.lang.NullPointerException</code>.</p>
  
  <pre><code>File file = new File("J:\\!!! DOCUMENTS\\!Outsourcing\\AppStore\\Benzinostancii\\Petrol\\logo.png");
  
  Bitmap bit = BitmapFactory.decodeFile(String.valueOf(file));
  
  double Dlat = lat.get(index);
  double Dlon = lon.get(index);
  String info = Arrayinfo.get(index);
  String name = Arrayname.get(index);
  
  LatLng coordinate = new LatLng(Dlat, Dlon);
  map.addMarker(new MarkerOptions()
      .icon(BitmapDescriptorFactory.fromBitmap(bit))
      .position(coordinate)
      .title(info)
  ).setSnippet(name);
  </code></pre>