Use the official sample ExportTileCacheTask download tile file;
code
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);
map = (MapView)findViewById(R.id.map);
File file = new File(Environment.getExternalStorageDirectory().getAbsolutePath() + "/mapsource/samples/World_Street_Map");
String externalStorageState = Environment.getExternalStorageState();
if (file.exists()) {
ArcGISLocalTiledLayer arcGISLocalTiledLayer = new ArcGISLocalTiledLayer("file://"+file.getAbsolutePath());
map.addLayer(arcGISLocalTiledLayer);
map.enableWrapAround(true);
map.setEsriLogoVisible(true);
}
file exist
Q 1. can't show native map ?
Q 2. I have another tile layers file, but it not contain mapserver.json file. so I can't get InitExtent Value ,How get it and set to mapView?
Have you posted this question to the Android forum?
Remove "file://"+