<?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 How to add a service layer (point) in androind studio? in ArcGIS Runtime SDK for Android Questions</title>
    <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/how-to-add-a-service-layer-point-in-androind/m-p/612629#M4226</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi people.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I am new in this, i want create a simple app in android studio, only a base map and a layer (points) no more. i have my layer in arcgis servere (&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.esri.com/external-link.jspa?url=http%3A%2F%2F190.181.6.106%3A6080%2Farcgis%2Frest%2Fservices%2FSob%2FFC_APP%2FMapServer" rel="nofollow" target="_blank"&gt;http://190.181.6.106:6080/arcgis/rest/services/Sob/FC_APP/MapServer&lt;/A&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;all ready I create an app whit a base map but i cant add my point layer, i saw this topic &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.esri.com/external-link.jspa?url=https%3A%2F%2Fdevelopers.arcgis.com%2Fandroid%2Fguide%2Faccess-feature-data-in-the-cloud.htm" rel="nofollow" target="_blank"&gt;https://developers.arcgis.com/android/guide/access-feature-data-in-the-cloud.htm&lt;/A&gt;&lt;SPAN&gt;,&amp;nbsp; i use this sentence &amp;lt;string name="featureServiceURL"&amp;gt;&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.esri.com/external-link.jspa?url=http%3A%2F%2Fservices.arcgis.com%2FoKgs2tbjK6zwTdvi%2Farcgis%2Frest%2Fservices%2FMajor_World_Cities%2FFeatureServer%2F0" rel="nofollow" target="_blank"&gt;http://services.arcgis.com/oKgs2tbjK6zwTdvi/arcgis/rest/services/Major_World_Cities/FeatureServer/0&lt;/A&gt;&lt;SPAN&gt;&amp;lt;/string&amp;gt; in strings.xml, is this the way? &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i realy dont know how to do, i am trying 3 days and i cant.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;like i said i just need a base map plus my point layer, no more &lt;IMG src="https://community.esri.com/legacyfs/online/emoticons/sad.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;can you help me plz&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 06 Nov 2015 15:18:35 GMT</pubDate>
    <dc:creator>Luis_AlejandroTorrez_Zapata</dc:creator>
    <dc:date>2015-11-06T15:18:35Z</dc:date>
    <item>
      <title>How to add a service layer (point) in androind studio?</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/how-to-add-a-service-layer-point-in-androind/m-p/612629#M4226</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi people.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I am new in this, i want create a simple app in android studio, only a base map and a layer (points) no more. i have my layer in arcgis servere (&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.esri.com/external-link.jspa?url=http%3A%2F%2F190.181.6.106%3A6080%2Farcgis%2Frest%2Fservices%2FSob%2FFC_APP%2FMapServer" rel="nofollow" target="_blank"&gt;http://190.181.6.106:6080/arcgis/rest/services/Sob/FC_APP/MapServer&lt;/A&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;all ready I create an app whit a base map but i cant add my point layer, i saw this topic &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.esri.com/external-link.jspa?url=https%3A%2F%2Fdevelopers.arcgis.com%2Fandroid%2Fguide%2Faccess-feature-data-in-the-cloud.htm" rel="nofollow" target="_blank"&gt;https://developers.arcgis.com/android/guide/access-feature-data-in-the-cloud.htm&lt;/A&gt;&lt;SPAN&gt;,&amp;nbsp; i use this sentence &amp;lt;string name="featureServiceURL"&amp;gt;&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.esri.com/external-link.jspa?url=http%3A%2F%2Fservices.arcgis.com%2FoKgs2tbjK6zwTdvi%2Farcgis%2Frest%2Fservices%2FMajor_World_Cities%2FFeatureServer%2F0" rel="nofollow" target="_blank"&gt;http://services.arcgis.com/oKgs2tbjK6zwTdvi/arcgis/rest/services/Major_World_Cities/FeatureServer/0&lt;/A&gt;&lt;SPAN&gt;&amp;lt;/string&amp;gt; in strings.xml, is this the way? &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i realy dont know how to do, i am trying 3 days and i cant.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;like i said i just need a base map plus my point layer, no more &lt;IMG src="https://community.esri.com/legacyfs/online/emoticons/sad.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;can you help me plz&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Nov 2015 15:18:35 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/how-to-add-a-service-layer-point-in-androind/m-p/612629#M4226</guid>
      <dc:creator>Luis_AlejandroTorrez_Zapata</dc:creator>
      <dc:date>2015-11-06T15:18:35Z</dc:date>
    </item>
    <item>
      <title>Re: How to add a service layer (point) in androind studio?</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/how-to-add-a-service-layer-point-in-androind/m-p/612630#M4227</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Your Map Service of Points is a dynamic layer so you need to add it in as an ArcGISDynamicMapServiceLayer.&amp;nbsp; A better sample app to get started with is the &lt;A href="https://github.com/Esri/arcgis-runtime-samples-android/tree/master/HelloWorld"&gt;Hello World&lt;/A&gt; sample.&amp;nbsp; You can add your layer to this app by adding the following code snippet to &lt;A href="https://github.com/Esri/arcgis-runtime-samples-android/blob/master/HelloWorld/src/main/java/com/arcgis/android/samples/maps/helloworld/MainActivity.java"&gt;MainActivity.java&lt;/A&gt;​:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #9876aa;"&gt;mMapView &lt;/SPAN&gt;= (MapView)findViewById(R.id.&lt;SPAN style="color: #9876aa; font-style: italic;"&gt;map&lt;/SPAN&gt;)&lt;SPAN style="color: #cc7832;"&gt;;&lt;/SPAN&gt;&lt;SPAN style="color: #cc7832;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #808080;"&gt;// add the following code below&lt;BR /&gt;&lt;/SPAN&gt;ArcGISDynamicMapServiceLayer pointLayer = &lt;SPAN style="color: #cc7832;"&gt;new &lt;/SPAN&gt;ArcGISDynamicMapServiceLayer(&lt;SPAN style="color: #6a8759;"&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.esri.com/external-link.jspa?url=http%3A%2F%2F190.181.6.106%3A6080%2Farcgis%2Frest%2Fservices%2FSob%2FFC_APP%2FMapServer" rel="nofollow" target="_blank"&gt;http://190.181.6.106:6080/arcgis/rest/services/Sob/FC_APP/MapServer&lt;/A&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;/SPAN&gt;)&lt;SPAN style="color: #cc7832;"&gt;;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #9876aa;"&gt;mMapView&lt;/SPAN&gt;.addLayer(pointLayer)&lt;SPAN style="color: #cc7832;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Next update the MapView layout resource, &lt;A href="https://github.com/Esri/arcgis-runtime-samples-android/blob/master/HelloWorld/src/main/res/layout/activity_main.xml"&gt;activity_main.xml&lt;/A&gt;, to your area of interest with the following:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #bababa;"&gt;&lt;SPAN style="color: #bababa;"&gt;mapoptions.center=&lt;/SPAN&gt;&lt;SPAN style="color: #a5c261;"&gt;"-13.894009, -64.962861" &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #bababa;"&gt;mapoptions.ZoomLevel=&lt;/SPAN&gt;&lt;SPAN style="color: #a5c261;"&gt;"10"&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Your map should look similar to the following screenshot:&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="dynamic_layer.png" class="image-1 jive-image" src="https://community.esri.com/legacyfs/online/139609_dynamic_layer.png" style="height: auto;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Nov 2015 16:25:16 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/how-to-add-a-service-layer-point-in-androind/m-p/612630#M4227</guid>
      <dc:creator>DanO_Neill</dc:creator>
      <dc:date>2015-11-06T16:25:16Z</dc:date>
    </item>
  </channel>
</rss>

