1
       MapView mapView = new MapView(this, 256); //constructor
       mapView.setClickable(true);
       mapView.setBuiltInZoomControls(true);
       setContentView(mapView); //displaying the MapView
       mapView.setTileSource(TileSourceFactory.MAPQUESTOSM);
       mapView.getController().setZoom(15); 
       mapView.getController().setCenter(new GeoPoint(mLat, mLon));
       mapView.setUseDataConnection(true); 
       mapView.setMultiTouchControls(true);

I have made an offline map with Atlas creator using OSMDroid MapQuest

I have placed zip file inside Sdcard inside "osmdroid" folder.

But

When i run my android application there is excetion that

**fail to read directory

and showing "blank map" on my android device

Please please help.

Sagar Yadav
  • 137
  • 2
  • 11
  • Which android version are you using? do yo have declared read persmissions in android manifest? – k3b Oct 05 '15 at 13:14

1 Answers1

0

If you're using Lollipop, you cannot read from any arbitrary directory from the SDCard. You have to do one of these:

Community
  • 1
  • 1
somesh
  • 2,509
  • 3
  • 16
  • 24