I know this is not the place to ask this kind of a question but I've posted this question in various forum but still no answer. So I am asking it in here any ways. Or if you can tell me how andnav application retrieves osm tiles I can use that as a lead.
I am using OSMdroid API for displaying custom tiles. So trying to display tiles from my local server
Here is my code
super.onCreate(savedInstanceState);
setContentView(R.layout.main);
mapView = (MapView) findViewById(R.id.openmapview);
mapView.setBuiltInZoomControls(true);
//zoom to Netherlands
mapView.getController().setZoom(5);
mapView.getController().setCenter(new GeoPoint(51500000, 5400000));
final MapTileProviderBasic tileProvider = new MapTileProviderBasic(getApplicationContext());
tileProvider.setTileSource(tileSource);
final TilesOverlay tilesOverlay = new TilesOverlay(tileProvider, this.getBaseContext());
mapView.getOverlays().add(tilesOverlay);
in the layout I have declared map view in the following way
<org.osmdroid.views.MapView
android:id="@+id/openmapview"
android:layout_width="fill_parent"
android:layout_height="fill_parent"/>