<?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 labels on Android application.  in ArcGIS Runtime SDK for Android Questions</title>
    <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/how-to-add-labels-on-android-application/m-p/604506#M4169</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I created a map document on ArcMap, and I created polygons in it. I assigned numbers to the polygons, and i am able to see them as labels in ArcMap. However, when i download the layers on my android application, the labels of the polygons do not show. Does anyone know how to display labels from ArcMap on Android ? Thanks!&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 10 Apr 2017 22:10:11 GMT</pubDate>
    <dc:creator>ThomasSaldana</dc:creator>
    <dc:date>2017-04-10T22:10:11Z</dc:date>
    <item>
      <title>How to add labels on Android application.</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/how-to-add-labels-on-android-application/m-p/604506#M4169</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I created a map document on ArcMap, and I created polygons in it. I assigned numbers to the polygons, and i am able to see them as labels in ArcMap. However, when i download the layers on my android application, the labels of the polygons do not show. Does anyone know how to display labels from ArcMap on Android ? Thanks!&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Apr 2017 22:10:11 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/how-to-add-labels-on-android-application/m-p/604506#M4169</guid>
      <dc:creator>ThomasSaldana</dc:creator>
      <dc:date>2017-04-10T22:10:11Z</dc:date>
    </item>
    <item>
      <title>Re: How to add labels on Android application.</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/how-to-add-labels-on-android-application/m-p/604507#M4170</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;A href="https://community.esri.com/migrated-users/215462"&gt;Thomas Saldana&lt;/A&gt;‌,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would look into turning on labeling via the feature layer method setLabelsEnabled(booelan enabled):&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://developers.arcgis.com/android/latest/api-reference/reference/com/esri/arcgisruntime/layers/FeatureLayer.html#setLabelsEnabled(boolean)" title="https://developers.arcgis.com/android/latest/api-reference/reference/com/esri/arcgisruntime/layers/FeatureLayer.html#setLabelsEnabled(boolean)"&gt;FeatureLayer| arcgis-android&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I believe that documentation link should put you on the correct path.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Alexander&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Apr 2017 14:46:39 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/how-to-add-labels-on-android-application/m-p/604507#M4170</guid>
      <dc:creator>AlexanderNohe1</dc:creator>
      <dc:date>2017-04-12T14:46:39Z</dc:date>
    </item>
    <item>
      <title>Re: How to add labels on Android application.</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/how-to-add-labels-on-android-application/m-p/604508#M4171</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Oh okay, thank you.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do i add that right after I set a layer?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is how i am setting a layer in the android application:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;SPAN style="background-color: #ffe4ff;"&gt;mFeatureServiceUrl&lt;/SPAN&gt; = &lt;SPAN style="color: #008000; font-weight: bold;"&gt;".../arcgis/rest/services/SecondPrototypetest/MapServer/2"&lt;/SPAN&gt;;&lt;SPAN style="color: #808080;"&gt;//getString(R.string.FirstFloors);set all floors in the basement level, one by one
&lt;/SPAN&gt;&lt;SPAN style="color: #660e7a; font-weight: bold;"&gt;mFeatureLayer &lt;/SPAN&gt;= &lt;SPAN style="color: #000080; font-weight: bold;"&gt;new &lt;/SPAN&gt;ArcGISFeatureLayer(&lt;SPAN style="background-color: #e4e4ff;"&gt;mFeatureServiceUrl&lt;/SPAN&gt;, ArcGISFeatureLayer.MODE.&lt;SPAN style="color: #660e7a; font-weight: bold;"&gt;ONDEMAND&lt;/SPAN&gt;);&lt;SPAN style="color: #808080;"&gt;//leave
&lt;/SPAN&gt;&lt;SPAN style="color: #660e7a; font-weight: bold;"&gt;mMapView&lt;/SPAN&gt;.addLayer(&lt;SPAN style="color: #660e7a; font-weight: bold;"&gt;mFeatureLayer&lt;/SPAN&gt;);&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 01:55:40 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/how-to-add-labels-on-android-application/m-p/604508#M4171</guid>
      <dc:creator>ThomasSaldana</dc:creator>
      <dc:date>2021-12-12T01:55:40Z</dc:date>
    </item>
    <item>
      <title>Re: How to add labels on Android application.</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/how-to-add-labels-on-android-application/m-p/604509#M4172</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am also using the&amp;nbsp;&lt;/P&gt;&lt;P&gt;ArcGISFeatureLayer class, but I am not sure if it makes a difference.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I get an error. It cannot resolve the method.&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Apr 2017 00:49:26 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/how-to-add-labels-on-android-application/m-p/604509#M4172</guid>
      <dc:creator>ThomasSaldana</dc:creator>
      <dc:date>2017-04-13T00:49:26Z</dc:date>
    </item>
    <item>
      <title>Re: How to add labels on Android application.</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/how-to-add-labels-on-android-application/m-p/604510#M4173</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;A href="https://community.esri.com/people/thomassldn"&gt;thomassldn&lt;/A&gt;‌,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I was under the assumption that you were working with Runtime version 100, not runtime version 10.2.x. &amp;nbsp;I will need to go and revisit the previous runtime version and see if I can come up with something.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Alexander&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Apr 2017 12:38:45 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/how-to-add-labels-on-android-application/m-p/604510#M4173</guid>
      <dc:creator>AlexanderNohe1</dc:creator>
      <dc:date>2017-04-13T12:38:45Z</dc:date>
    </item>
    <item>
      <title>Re: How to add labels on Android application.</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/how-to-add-labels-on-android-application/m-p/604511#M4174</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;A href="https://community.esri.com/migrated-users/215462"&gt;Thomas Saldana&lt;/A&gt;‌,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Perhaps you could try using&amp;nbsp;&lt;A class="link-titled" href="https://developers.arcgis.com/android/10-2/api-reference/reference/com/esri/android/map/FeatureLayer.html#setEnableLabels(boolean)" title="https://developers.arcgis.com/android/10-2/api-reference/reference/com/esri/android/map/FeatureLayer.html#setEnableLabels(boolean)"&gt;FeatureLayer | ArcGIS Android 10.2.9 API&lt;/A&gt;&amp;nbsp;and using the setLabelsEnabled(boolean) to turn on labels for your feature. &amp;nbsp;This would take a feature table as the constructor for a feature layer and you should be able to construct the feature table from a &lt;A href="https://developers.arcgis.com/android/10-2/api-reference/reference/com/esri/core/geodatabase/GeodatabaseFeatureServiceTable.html#GeodatabaseFeatureServiceTable(java.lang.String, int)"&gt;GeodatabaseFeatureServiceTable&lt;/A&gt;. &amp;nbsp;I hope this helps!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Alexander&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Apr 2017 13:39:58 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/how-to-add-labels-on-android-application/m-p/604511#M4174</guid>
      <dc:creator>AlexanderNohe1</dc:creator>
      <dc:date>2017-04-13T13:39:58Z</dc:date>
    </item>
    <item>
      <title>Re: How to add labels on Android application.</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/how-to-add-labels-on-android-application/m-p/604512#M4175</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Alexander,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for the information. I have tried your suggestion, like this:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;
&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;SPAN style="color: #000080; font-weight: bold;"&gt;public &lt;/SPAN&gt;ArcGISFeatureLayer mFeatureServiceUrl = &lt;SPAN style="color: #008000; border: 0px; font-weight: bold; margin: 0px;"&gt;".../arcgis/rest/services/SecondPrototypetest/MapServer/2"&lt;/SPAN&gt;;&lt;/PRE&gt;&lt;/PRE&gt;&lt;SPAN style="color: #660e7a; font-weight: bold;"&gt;mFeatureLayer &lt;/SPAN&gt;= &lt;SPAN style="color: #000080; font-weight: bold;"&gt;new &lt;/SPAN&gt;ArcGISFeatureLayer(&lt;SPAN style="color: #660e7a; font-weight: bold;"&gt;mFeatureServiceUrl&lt;/SPAN&gt;, ArcGISFeatureLayer.MODE.&lt;SPAN style="color: #660e7a; font-weight: bold;"&gt;ONDEMAND&lt;/SPAN&gt;);&lt;SPAN style="color: #808080;"&gt;//leave&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #660e7a; font-weight: bold;"&gt;mMapView&lt;/SPAN&gt;.addLayer(&lt;SPAN style="color: #660e7a; font-weight: bold;"&gt;mFeatureLayer2&lt;/SPAN&gt;);&lt;BR /&gt;&lt;BR /&gt;GeodatabaseFeatureServiceTable layertable = &lt;SPAN style="color: #000080; font-weight: bold;"&gt;new &lt;/SPAN&gt;GeodatabaseFeatureServiceTable(&lt;SPAN style="color: #008000; font-weight: bold;"&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%2F...%3A6080%2Farcgis%2Frest%2Fservices%2FSecondPrototype%2FMapServer%2F2" target="_blank"&gt;http://...:6080/arcgis/rest/services/SecondPrototype/MapServer/2&lt;/A&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;/SPAN&gt;, &lt;SPAN style="color: #0000ff;"&gt;158&lt;/SPAN&gt;);&lt;BR /&gt;FeatureLayer layer = &lt;SPAN style="color: #000080; font-weight: bold;"&gt;new &lt;/SPAN&gt;FeatureLayer(layertable);&lt;BR /&gt;layer.setEnableLabels(&lt;SPAN style="color: #000080; font-weight: bold;"&gt;true&lt;/SPAN&gt;);&lt;BR /&gt;&lt;BR /&gt;However, it did not seem to work. I think i am doing it incorrectly. &lt;BR /&gt;&lt;BR /&gt;Is this what you were thinking? &lt;BR /&gt;&lt;BR /&gt;Thank you for your time. &lt;BR /&gt;&lt;BR /&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 01:55:43 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/how-to-add-labels-on-android-application/m-p/604512#M4175</guid>
      <dc:creator>ThomasSaldana</dc:creator>
      <dc:date>2021-12-12T01:55:43Z</dc:date>
    </item>
    <item>
      <title>Re: How to add labels on Android application.</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/how-to-add-labels-on-android-application/m-p/604513#M4176</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sorry, I meant like this:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;SPAN style="color: #000080; font-weight: bold;"&gt;public &lt;/SPAN&gt;ArcGISFeatureLayer &lt;SPAN style="color: #660e7a; font-weight: bold;"&gt;mFeatureLayer&lt;/SPAN&gt;;&lt;/PRE&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;SPAN style="background-color: #ffe4ff;"&gt;mFeatureServiceUrl&lt;/SPAN&gt; = &lt;SPAN style="color: #008000; border: 0px; font-weight: bold; margin: 0px;"&gt;".../arcgis/rest/services/SecondPrototypetest/MapServer/2"&lt;/SPAN&gt;;
&lt;SPAN style="color: #660e7a; font-weight: bold;"&gt;mFeatureLayer &lt;/SPAN&gt;= &lt;SPAN style="color: #000080; font-weight: bold;"&gt;new &lt;/SPAN&gt;ArcGISFeatureLayer(&lt;SPAN style="background-color: #e4e4ff;"&gt;mFeatureServiceUrl&lt;/SPAN&gt;, ArcGISFeatureLayer.MODE.&lt;SPAN style="color: #660e7a; font-weight: bold;"&gt;ONDEMAND&lt;/SPAN&gt;);&lt;SPAN style="color: #808080;"&gt;//leave
&lt;/SPAN&gt;&lt;SPAN style="color: #660e7a; font-weight: bold;"&gt;mMapView&lt;/SPAN&gt;.addLayer(&lt;SPAN style="color: #660e7a; font-weight: bold;"&gt;mFeatureLayer2&lt;/SPAN&gt;);

GeodatabaseFeatureServiceTable layertable = &lt;SPAN style="color: #000080; font-weight: bold;"&gt;new &lt;/SPAN&gt;GeodatabaseFeatureServiceTable(&lt;SPAN style="color: #008000; font-weight: bold;"&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%2Froomquest.research.cse.csusb.edu%3A6080%2Farcgis%2Frest%2Fservices%2FSecondPrototype%2FMapServer%2F158" target="_blank"&gt;http://roomquest.research.cse.csusb.edu:6080/arcgis/rest/services/SecondPrototype/MapServer/158&lt;/A&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;/SPAN&gt;, &lt;SPAN style="color: #0000ff;"&gt;158&lt;/SPAN&gt;);
FeatureLayer layer = &lt;SPAN style="color: #000080; font-weight: bold;"&gt;new &lt;/SPAN&gt;FeatureLayer(layertable);
layer.setEnableLabels(&lt;SPAN style="color: #000080; font-weight: bold;"&gt;true&lt;/SPAN&gt;);&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 01:55:46 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/how-to-add-labels-on-android-application/m-p/604513#M4176</guid>
      <dc:creator>ThomasSaldana</dc:creator>
      <dc:date>2021-12-12T01:55:46Z</dc:date>
    </item>
  </channel>
</rss>

