<?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 Re: Android SDK Identify Sample? in ArcGIS Runtime SDK for Android Questions</title>
    <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/android-sdk-identify-sample/m-p/447918#M3028</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Buen dia&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Gracias por contester si yo utilizo el SDK&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;pero tengo la duda, para poder utilizar mapas propios es necesario de un MapServer?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 07 May 2014 12:58:55 GMT</pubDate>
    <dc:creator>LuisDuarte</dc:creator>
    <dc:date>2014-05-07T12:58:55Z</dc:date>
    <item>
      <title>Android SDK Identify Sample?</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/android-sdk-identify-sample/m-p/447912#M3022</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Greetings, &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I am just getting started with the Android SDK and am working through some of the samples. I have gotten to the Identify sample and am a little bit confused about what I am working with. I subsequently have a couple of questions that would help me in my mission. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Am I working with the correct version of the Identify sample? I am working with the samples that I downloaded with ArcGIS for Android 2.0.0. The help files for this sample (&lt;/SPAN&gt;&lt;A href="http://help.arcgis.com/en/arcgismobile/10.0/apis/android/help/#/Identify_task_sample/01190000001w000000/" rel="nofollow noopener noreferrer" target="_blank"&gt;http://help.arcgis.com/en/arcgismobile/10.0/apis/android/help/#/Identify_task_sample/01190000001w000000/&lt;/A&gt;&lt;SPAN&gt;) describe a scenario that explores recent earthquakes. However, when I build and run my sample I get a map of the 50 states. Is the earthquake scenario the most up to date and if so where do I get a working copy of the code for the earthquake scenario? &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;When I run the Identify sample and click on a state, the popup spinner always lists a state that is different than the state I clicked on. For instance, If I click on Texas, I get New Mexico in my popup. When I click on the spinner dropdown, I get a list with Texas and all of the nearby states. Is this the intended result? Is there any way to make the identify point more accurate? I would like to have only one result returned when I click on a state. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Lastly when I swap out the sample map service with a parcel service of my own, I am unable to get any results in the popup. I am swaping out the URLs in the following locaitons:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;In onCreate:&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&amp;nbsp; 
ArcGISTiledMapServiceLayer layer = new ArcGISTiledMapServiceLaye("http://services.arcgisonline.com/ArcGIS/rest/services/Demographics/USA_Average_Household_Size/MapServer");
&amp;nbsp; 
map.addLayer(layer);&amp;nbsp; 
&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;and in onPreExecute:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;mIdentifyTask = new IdentifyTask("http://services.arcgisonline.com/ArcGIS/rest/services/Demographics/USA_Average_Household_Size/MapServer");&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;My service supports the Identify as a supported opperation. Is there something I am missing? &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Any hints, tips or nudges in the right direction will be greatly appreciated. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Best Regards, &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Tyler&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 20:00:54 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/android-sdk-identify-sample/m-p/447912#M3022</guid>
      <dc:creator>TylerWaring</dc:creator>
      <dc:date>2021-12-11T20:00:54Z</dc:date>
    </item>
    <item>
      <title>Re: Android SDK Identify Sample?</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/android-sdk-identify-sample/m-p/447913#M3023</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I have the same problem, can't seem to figure out the issue. The only differences between the sample and the service I am trying to identify is, my service is dynamic and the table is joined to another table. I was able to return results on a cached webservice. Not sure what would need to be changed in the sample to support a dynamic service.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 30 Nov 2012 18:54:09 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/android-sdk-identify-sample/m-p/447913#M3023</guid>
      <dc:creator>AaronNash1</dc:creator>
      <dc:date>2012-11-30T18:54:09Z</dc:date>
    </item>
    <item>
      <title>Re: Android SDK Identify Sample?</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/android-sdk-identify-sample/m-p/447914#M3024</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;When you are working with this sample there 3 changes necessary to make in order to make it work when you embed it in your application.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;1. Change the URLS =&amp;nbsp; Which you have already done.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;2. you have to set the parameter layers through an Array. You have to specify which layer/layers of the map service you are accessing&amp;nbsp; so change or alter this line &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;"params.setLayers(new int[]{0});" in the curly braces change specify the layer/layer the tool has to access. for ed params.setLayers(new int[]{0,1,2,3});&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;3. after accessing the layer you have to tell the tool on what bases or record it has to pull out. Usually it has to be a primary key like&amp;nbsp; record_id or a object id so chanege the field name in the following code according to a primary key in your mapservice.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;in my case : if(curResult.getAttributes().containsKey("RECORDID")){&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; outputVal = curResult.getAttributes().get("RECORDID").toString(); &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;With these three things done your code and tool should work fine.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;do reply as whether this worked.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Nigel.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Feb 2013 08:32:51 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/android-sdk-identify-sample/m-p/447914#M3024</guid>
      <dc:creator>NigelDsouza</dc:creator>
      <dc:date>2013-02-22T08:32:51Z</dc:date>
    </item>
    <item>
      <title>Re: Android SDK Identify Sample?</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/android-sdk-identify-sample/m-p/447915#M3025</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;When you are working with this sample there 3 changes necessary to make in order to make it work when you embed it in your application.&lt;BR /&gt;1. Change the URLS =&amp;nbsp; Which you have already done.&lt;BR /&gt;&lt;BR /&gt;2. you have to set the parameter layers through an Array. You have to specify which layer/layers of the map service you are accessing&amp;nbsp; so change or alter this line &lt;BR /&gt;"params.setLayers(new int[]{0});" in the curly braces change specify the layer/layer the tool has to access. for ed params.setLayers(new int[]{0,1,2,3});&lt;BR /&gt;&lt;BR /&gt;3. after accessing the layer you have to tell the tool on what bases or record it has to pull out. Usually it has to be a primary key like&amp;nbsp; record_id or a object id so chanege the field name in the following code according to a primary key in your mapservice.&lt;BR /&gt;in my case : if(curResult.getAttributes().containsKey("RECORDID")){&amp;nbsp;&amp;nbsp; &lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; outputVal = curResult.getAttributes().get("RECORDID").toString(); &lt;BR /&gt;With these three things done your code and tool should work fine.&lt;BR /&gt;&lt;BR /&gt;do reply as whether this worked.&lt;BR /&gt;Regards,&lt;BR /&gt;Nigel.&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Hello,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; I m currently using the new ArcSDK 10.2.3. The problem is that I can not change the layer to identify. Whaterver I put, it will do the identify tasks in all the layers. Does the function setLayer function not any more?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Apr 2014 14:16:05 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/android-sdk-identify-sample/m-p/447915#M3025</guid>
      <dc:creator>zijianzhu</dc:creator>
      <dc:date>2014-04-22T14:16:05Z</dc:date>
    </item>
    <item>
      <title>Re: Android SDK Identify Sample?</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/android-sdk-identify-sample/m-p/447916#M3026</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Buen dia&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Tengo problemas al reproducir el ejemplo del IdentifiTask &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;al hacer onclick sobre la pantalla no me muestra ninguna propiedad del mapa &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;la línea &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;mResult = mIdentifyTask.execute(mParams);&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;me devuelve mResult = null&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;pienso que debe ser por las escalas del dibujo, yo genero el archivo shape con ARCMAP pero no consigo que mis propiedades se puedan visualizar&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Gracias,&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Apr 2014 18:54:38 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/android-sdk-identify-sample/m-p/447916#M3026</guid>
      <dc:creator>LuisDuarte</dc:creator>
      <dc:date>2014-04-24T18:54:38Z</dc:date>
    </item>
    <item>
      <title>Re: Android SDK Identify Sample?</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/android-sdk-identify-sample/m-p/447917#M3027</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Luis Bienvenido al Forum!&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;es el "archivo shape" = Esri 'shapefile'? &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;¿Está utilizando el SDK de Android?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;aqui?:&lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="https://developers.arcgis.com/android/sample-code/identify-task/"&gt;https://developers.arcgis.com/android/sample-code/identify-task/&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Gracias&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 25 Apr 2014 19:05:05 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/android-sdk-identify-sample/m-p/447917#M3027</guid>
      <dc:creator>RobertBurke</dc:creator>
      <dc:date>2014-04-25T19:05:05Z</dc:date>
    </item>
    <item>
      <title>Re: Android SDK Identify Sample?</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/android-sdk-identify-sample/m-p/447918#M3028</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Buen dia&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Gracias por contester si yo utilizo el SDK&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;pero tengo la duda, para poder utilizar mapas propios es necesario de un MapServer?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 May 2014 12:58:55 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/android-sdk-identify-sample/m-p/447918#M3028</guid>
      <dc:creator>LuisDuarte</dc:creator>
      <dc:date>2014-05-07T12:58:55Z</dc:date>
    </item>
  </channel>
</rss>

