<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Timeout issue when accessing Dynamic Map Service from Android Emulator in ArcGIS Runtime SDK for Android Questions</title>
    <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/timeout-issue-when-accessing-dynamic-map-service/m-p/353608#M2287</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hello&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I am a novice in Android and got Eclipse Kepler configured with ArcGIS Android Runtime SDK 10.2.2. I have also configured Google ADT and all that is needed to run the HelloWorld example. I am using ArcGIS Server 10.2 Standard Edition on Windows Server.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I published a dynamic map service but did NOT enable the mobile access. I am told that it is NOT mandatory to enable the Mobile Access for a mapservice for simple viewing . Correct me if i am wrong. I published this Dynamic Map Service to Mobile Content server and able to access this from my SmartPhone using ESRI apps downloaded from Google Play.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Later I modified the HelloWorld example to point to a DynamicMapService. I included the simple code snippet below:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Pls note that i had replaced the servername/ipaddress with the placeholder tag.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;

 super.onCreate(savedInstanceState);
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 
&amp;nbsp;&amp;nbsp;&amp;nbsp; // After the content of this Activity is set, the map can be accessed from the layout.
&amp;nbsp;&amp;nbsp;&amp;nbsp; mMapView = new MapView(this);&amp;nbsp;&amp;nbsp; 
&amp;nbsp;&amp;nbsp;&amp;nbsp; 
&amp;nbsp;&amp;nbsp;&amp;nbsp; //Envelope
&amp;nbsp;&amp;nbsp;&amp;nbsp; Envelope env = new Envelope();
&amp;nbsp;&amp;nbsp;&amp;nbsp; env.setCoords(21398, 14277.517116, 21528.702632172, 14340.018);&amp;nbsp;&amp;nbsp; 
&amp;nbsp;&amp;nbsp;&amp;nbsp; mMapView.setExtent(env); 
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 
&amp;nbsp;&amp;nbsp;&amp;nbsp; //Dynamic Map Service layer
&amp;nbsp;&amp;nbsp;&amp;nbsp; mMapView.addLayer(new com.esri.android.map.ags.ArcGISDynamicMapServiceLayer("http://&amp;lt;ipaddress&amp;gt;:6080/arcgis/rest/services/Draft/CEM1/MapServer"));
&amp;nbsp;&amp;nbsp;&amp;nbsp; setContentView(mMapView);

&lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;When i access the URL of the map server in a browser in my laptop it works without issues. However when i run the Android app in Eclipse - installed in my laptop -&amp;nbsp; the Emulator starts, the apk file is getting installed but when the activity starts i am getting the error:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;org.apache.http.conn.ConnectTimeoutException&lt;/STRONG&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;However i am able to access this Mapservice from ArcMap in my laptop and my smartphone without&amp;nbsp; issues. I changed the Servername to IPAddress and back. When i click the Android App it opens and displays a black screen. However the LogCat displays the issue as shown in this message.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;[ATTACH=CONFIG]32352[/ATTACH]&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I am not sure where this is going wrong. I checked the following:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;UL&gt;&lt;BR /&gt;&lt;LI&gt;Map Service is accessible from ArcMap and Smartphone&lt;/LI&gt;&lt;BR /&gt;&lt;LI&gt;Extent is valid&amp;nbsp; and has been verified in ArcMap&lt;/LI&gt;&lt;BR /&gt;&lt;/UL&gt;&lt;SPAN&gt;Can anyone help me in figuring out the problem? Thanks in advance.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Govind&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 20 Mar 2014 09:54:42 GMT</pubDate>
    <dc:creator>GovindarajanThillaividankan</dc:creator>
    <dc:date>2014-03-20T09:54:42Z</dc:date>
    <item>
      <title>Timeout issue when accessing Dynamic Map Service from Android Emulator</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/timeout-issue-when-accessing-dynamic-map-service/m-p/353608#M2287</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hello&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I am a novice in Android and got Eclipse Kepler configured with ArcGIS Android Runtime SDK 10.2.2. I have also configured Google ADT and all that is needed to run the HelloWorld example. I am using ArcGIS Server 10.2 Standard Edition on Windows Server.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I published a dynamic map service but did NOT enable the mobile access. I am told that it is NOT mandatory to enable the Mobile Access for a mapservice for simple viewing . Correct me if i am wrong. I published this Dynamic Map Service to Mobile Content server and able to access this from my SmartPhone using ESRI apps downloaded from Google Play.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Later I modified the HelloWorld example to point to a DynamicMapService. I included the simple code snippet below:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Pls note that i had replaced the servername/ipaddress with the placeholder tag.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;

 super.onCreate(savedInstanceState);
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 
&amp;nbsp;&amp;nbsp;&amp;nbsp; // After the content of this Activity is set, the map can be accessed from the layout.
&amp;nbsp;&amp;nbsp;&amp;nbsp; mMapView = new MapView(this);&amp;nbsp;&amp;nbsp; 
&amp;nbsp;&amp;nbsp;&amp;nbsp; 
&amp;nbsp;&amp;nbsp;&amp;nbsp; //Envelope
&amp;nbsp;&amp;nbsp;&amp;nbsp; Envelope env = new Envelope();
&amp;nbsp;&amp;nbsp;&amp;nbsp; env.setCoords(21398, 14277.517116, 21528.702632172, 14340.018);&amp;nbsp;&amp;nbsp; 
&amp;nbsp;&amp;nbsp;&amp;nbsp; mMapView.setExtent(env); 
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 
&amp;nbsp;&amp;nbsp;&amp;nbsp; //Dynamic Map Service layer
&amp;nbsp;&amp;nbsp;&amp;nbsp; mMapView.addLayer(new com.esri.android.map.ags.ArcGISDynamicMapServiceLayer("http://&amp;lt;ipaddress&amp;gt;:6080/arcgis/rest/services/Draft/CEM1/MapServer"));
&amp;nbsp;&amp;nbsp;&amp;nbsp; setContentView(mMapView);

&lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;When i access the URL of the map server in a browser in my laptop it works without issues. However when i run the Android app in Eclipse - installed in my laptop -&amp;nbsp; the Emulator starts, the apk file is getting installed but when the activity starts i am getting the error:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;org.apache.http.conn.ConnectTimeoutException&lt;/STRONG&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;However i am able to access this Mapservice from ArcMap in my laptop and my smartphone without&amp;nbsp; issues. I changed the Servername to IPAddress and back. When i click the Android App it opens and displays a black screen. However the LogCat displays the issue as shown in this message.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;[ATTACH=CONFIG]32352[/ATTACH]&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I am not sure where this is going wrong. I checked the following:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;UL&gt;&lt;BR /&gt;&lt;LI&gt;Map Service is accessible from ArcMap and Smartphone&lt;/LI&gt;&lt;BR /&gt;&lt;LI&gt;Extent is valid&amp;nbsp; and has been verified in ArcMap&lt;/LI&gt;&lt;BR /&gt;&lt;/UL&gt;&lt;SPAN&gt;Can anyone help me in figuring out the problem? Thanks in advance.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Govind&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Mar 2014 09:54:42 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/timeout-issue-when-accessing-dynamic-map-service/m-p/353608#M2287</guid>
      <dc:creator>GovindarajanThillaividankan</dc:creator>
      <dc:date>2014-03-20T09:54:42Z</dc:date>
    </item>
    <item>
      <title>Re: Timeout issue when accessing Dynamic Map Service from Android Emulator</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/timeout-issue-when-accessing-dynamic-map-service/m-p/353609#M2288</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I am having a similar issue. Did you ever find a resolution to your problem?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 May 2014 17:01:00 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/timeout-issue-when-accessing-dynamic-map-service/m-p/353609#M2288</guid>
      <dc:creator>GarrettMacKay</dc:creator>
      <dc:date>2014-05-13T17:01:00Z</dc:date>
    </item>
  </channel>
</rss>

