I was following the �??helloworld�?� example to create an simple Android application. I am able to run the helloworld successfully. Then I changed to use the dynamic layer by following �??Add layer to map�?� example: http://help.arcgis.com/en/arcgismobile/10.0/apis/android/help/index.html#//01190000000n000000 it runs very well too. Then I try to use a dynamic map service that is published in our Intranet. The map service published by our ArcGIS server 10. On the cell phone, I set up the VPN, and then I am able to use browser to go to localserver'>http://localserver/arcgis/rest/services/campus/MapServer directory and open the map service in javescript viewer. The issue is: If I used this map service to replace the map service in �??Add layer to map�?� example, my Samsung Galaxy S2 doesn�??t display this layer at all. My code looks like below:
private MapView map = null; String dynamicMapURL = "http://localserver/ArcGIS/rest/services/Campus/MapServer"; // Retrieve the map from XML layout map = (MapView) findViewById(R.id.map);
// Add dynamic layer to MapView ArcGISDynamicMapServiceLayer dynamicLayer = new ArcGISDynamicMapServiceLayer( dynamicMapURL); map.addLayer(dynamicLayer);