AnsweredAssumed Answered

How To Set Up My ArcGis Server,Then I Can Us Android Runtime SDK

Question asked by akens008 on Mar 17, 2015
Latest reply on Mar 21, 2015 by omega_cancer

I'm running the Demo project

and add a layer use the official ArcGIS Server,like this

ArcGISTiledMapServiceLayer tileLayer = new ArcGISTiledMapServiceLayer("http://services.arcgisonline.com/ArcGIS/rest/services/World_Street_Map/MapServer ");

mMapView.addLayer(tileLayer);

the Demo is working well

 

But when i use my own server url replace the official ArcGIS Server,like this

ArcGISTiledMapServiceLayer tileLayer = new ArcGISTiledMapServiceLayer("http://192.168.0.133:6080/arcgis/rest/services/SampleWorldCities/MapServer ");

mMapView.addLayer(tileLayer);

there is a running error is the Logcat and no map show in MapView

20150318111007.png

 

I have install ArcGIS For Server,and  a service named SampleWorldCities is running.

And i can visit the url http://192.168.0.133:6080/arcgis/rest/services/SampleWorldCities/MapServer in explorer

And the url http://localhost:6080/arcgis/rest/services//SampleWorldCities/MapServer?f=jsapi can show the map in explorer too.

So what can i do?

Outcomes