title: osmdroid XYTileSource not showing tiles from the server in Android
body: <p>I am using OSMdroid apis for the displaying custom tiles. They do provide Google wrapper for the same. So trying to display tiles from my local server</p>
  
  <p>Here is my code</p>
  
  <pre><code>final MapTileProviderBasic tileProvider = new MapTileProviderBasic(getApplicationContext());
  final ITileSource tileSource = new XYTileSource("SomeName", null, 3, 20, 256, ".png",
                      "http://MyServer/tiles/");
  tileProvider.setTileSource(tileSource);
  final GoogleTilesOverlay tilesOverlay = new GoogleTilesOverlay(tileProvider, this.getBaseContext());
   mapView.getOverlays().add(tilesOverlay);
  </code></pre>
  
  <p>in the layout I have declared map view in the following way</p>
  
  <pre><code>&lt;com.google.android.maps.MapView
  xmlns:android="http://schemas.android.com/apk/res/android"
  android:id="@+id/mapview"
  android:layout_width="fill_parent"
  android:layout_height="fill_parent"
  android:clickable="true"
  android:apiKey="my API Key"
  /&gt;
  </code></pre>
  
  <p>This works fine if I put the tiles under sdcard and use the following code</p>
  
  <pre><code>mProvider = new MapTileProviderBasic(getApplicationContext());
  mProvider.setTileSource(TileSourceFactory.FIETS_OVERLAY_NL);
  mTilesOverlay = new GoogleTilesOverlay(mProvider,getParent());
  mTilesOverlay.setUseDataConnection(false);
  mTilesOverlay.useDataConnection();
  mapView.getOverlays().add(mTilesOverlay);
  mapView.invalidate();   
  </code></pre>