Search code examples
androidosmdroid

OsmDroid show blank screen with blocks


Am trying to use OsmDroid with MapQuest maps downloaded from Mobile Atlas Creator. I followed all the instructions to generate the map tiles, upload them to the SDcard etc but when I run this on the device I get a screen with a bunch of empty boxes... What am I doing wrong?

> @Override
>     public void onCreate(Bundle savedInstanceState) {
>         super.onCreate(savedInstanceState);
>         setContentView(R.layout.osm_map);
>         mapView = (MapView) findViewById(R.id.mapview);
>         mapView.setTileSource(TileSourceFactory.MAPQUESTOSM);
>         mapView.setBuiltInZoomControls(true);
>         mapView.setUseDataConnection(false);
>         mapController = mapView.getController();
>         mapController.setZoom(15);
>     }
>     protected boolean isRouteDisplayed() {
>         // TODO Auto-generated method stub
>         return false;
>     }

Solution

  • There is a post covering the same topic here. If that doesn't work you can try my solution which is a little more complex but has the advantage that you can put the zip in any folder you'd like.