<?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: Problem with the identification of objects in ArcGIS Runtime SDK for Android Questions</title>
    <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/problem-with-the-identification-of-objects/m-p/527867#M3587</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Alexander, please check the following:&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;- You seem to get two IdentifyLayerResult instances back. Have you checked that neither of them contains any results?&lt;BR /&gt;- Try to increase the search tolerance, i.e. instead of 5 dp pass 30 dp for example.&lt;/P&gt;&lt;P&gt;- If none of this helps, please provide more information of the data in your scene. What layer types are in your scene? Would you be able to share your scene with us?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Gunther&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 24 Jun 2019 09:09:44 GMT</pubDate>
    <dc:creator>GuntherHeppner</dc:creator>
    <dc:date>2019-06-24T09:09:44Z</dc:date>
    <item>
      <title>Problem with the identification of objects</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/problem-with-the-identification-of-objects/m-p/527866#M3586</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello! There was a problem with the identification of objects. mGeoElements equal to zero. what is the reason? how can I fix it? I can't get attributes because of this.&amp;nbsp;ArcGIS Runtime SDK for Android 100.4.1&lt;IMG alt="" class="image-1 jive-image j-img-original" src="/legacyfs/online/451196_Аннотация 2019-06-21 223940.png" /&gt;&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: #9876aa;"&gt;mSceneView&lt;/SPAN&gt;.setOnTouchListener(&lt;SPAN style="color: #cc7832;"&gt;new &lt;/SPAN&gt;DefaultSceneViewOnTouchListener(&lt;SPAN style="color: #9876aa;"&gt;mSceneView&lt;/SPAN&gt;){
    &lt;SPAN style="color: #bbb529;"&gt;@Override
&lt;/SPAN&gt;&lt;SPAN style="color: #bbb529;"&gt;    &lt;/SPAN&gt;&lt;SPAN style="color: #cc7832;"&gt;public boolean &lt;/SPAN&gt;&lt;SPAN style="color: #ffc66d;"&gt;onSingleTapConfirmed&lt;/SPAN&gt;(MotionEvent e) {
        &lt;SPAN style="color: #808080;"&gt;// get the screen point where user tapped
&lt;/SPAN&gt;&lt;SPAN style="color: #808080;"&gt;        &lt;/SPAN&gt;android.graphics.Point screenPoint = &lt;SPAN style="color: #cc7832;"&gt;new &lt;/SPAN&gt;android.graphics.Point((&lt;SPAN style="color: #cc7832;"&gt;int&lt;/SPAN&gt;) e.getX()&lt;SPAN style="color: #cc7832;"&gt;, &lt;/SPAN&gt;(&lt;SPAN style="color: #cc7832;"&gt;int&lt;/SPAN&gt;) e.getY())&lt;SPAN style="color: #cc7832;"&gt;;
&lt;/SPAN&gt;&lt;SPAN style="color: #cc7832;"&gt;        &lt;/SPAN&gt;&lt;SPAN style="color: #808080;"&gt;// ...
&lt;/SPAN&gt;&lt;SPAN style="color: #808080;"&gt;
&lt;/SPAN&gt;&lt;SPAN style="color: #808080;"&gt;        &lt;/SPAN&gt;&lt;SPAN style="color: #cc7832;"&gt;final &lt;/SPAN&gt;ListenableFuture&amp;lt;List&amp;lt;IdentifyLayerResult&amp;gt;&amp;gt; identifyFuture = &lt;SPAN style="color: #9876aa;"&gt;mSceneView&lt;/SPAN&gt;.identifyLayersAsync(screenPoint&lt;SPAN style="color: #cc7832;"&gt;, &lt;/SPAN&gt;&lt;SPAN style="color: #6897bb;"&gt;5&lt;/SPAN&gt;&lt;SPAN style="color: #cc7832;"&gt;,
&lt;/SPAN&gt;&lt;SPAN style="color: #cc7832;"&gt;                false&lt;/SPAN&gt;)&lt;SPAN style="color: #cc7832;"&gt;;
&lt;/SPAN&gt;&lt;SPAN style="color: #cc7832;"&gt;
&lt;/SPAN&gt;&lt;SPAN style="color: #cc7832;"&gt;        &lt;/SPAN&gt;identifyFuture.addDoneListener(&lt;SPAN style="color: #cc7832;"&gt;new &lt;/SPAN&gt;Runnable() {
            &lt;SPAN style="color: #bbb529;"&gt;@Override
&lt;/SPAN&gt;&lt;SPAN style="color: #bbb529;"&gt;            &lt;/SPAN&gt;&lt;SPAN style="color: #cc7832;"&gt;public void &lt;/SPAN&gt;&lt;SPAN style="color: #ffc66d;"&gt;run&lt;/SPAN&gt;() {
                &lt;SPAN style="color: #cc7832;"&gt;try &lt;/SPAN&gt;{
&lt;SPAN style="color: #808080;"&gt;
&lt;/SPAN&gt;&lt;SPAN style="color: #808080;"&gt;                    &lt;/SPAN&gt;List&amp;lt;IdentifyLayerResult&amp;gt; identifyLayersResults = &lt;SPAN style="color: #b389c5;"&gt;identifyFuture&lt;/SPAN&gt;.get()&lt;SPAN style="color: #cc7832;"&gt;;
&lt;/SPAN&gt;&lt;SPAN style="color: #cc7832;"&gt;                    &lt;/SPAN&gt;StringBuilder message = &lt;SPAN style="color: #cc7832;"&gt;new &lt;/SPAN&gt;StringBuilder()&lt;SPAN style="color: #cc7832;"&gt;;
&lt;/SPAN&gt;&lt;SPAN style="color: #cc7832;"&gt;
&lt;/SPAN&gt;&lt;SPAN style="color: #cc7832;"&gt;                    for &lt;/SPAN&gt;(IdentifyLayerResult identifyLayerResult : identifyLayersResults) {&lt;SPAN style="color: #808080;"&gt;
&lt;/SPAN&gt;&lt;SPAN style="color: #808080;"&gt;                        &lt;/SPAN&gt;&lt;SPAN style="color: #cc7832;"&gt;if &lt;/SPAN&gt;(identifyLayerResult.getElements().size() &amp;gt; &lt;SPAN style="color: #6897bb;"&gt;0&lt;/SPAN&gt;) {

                            GeoElement topmostElement = identifyLayerResult.getElements().get(&lt;SPAN style="color: #6897bb;"&gt;0&lt;/SPAN&gt;)&lt;SPAN style="color: #cc7832;"&gt;;
&lt;/SPAN&gt;&lt;SPAN style="color: #cc7832;"&gt;                            if &lt;/SPAN&gt;(topmostElement &lt;SPAN style="color: #cc7832;"&gt;instanceof &lt;/SPAN&gt;Feature) {
                                Feature identifiedFeature = (Feature)topmostElement&lt;SPAN style="color: #cc7832;"&gt;;&lt;/SPAN&gt;&lt;SPAN style="color: #808080;"&gt;
&lt;/SPAN&gt;&lt;SPAN style="color: #808080;"&gt;                                &lt;/SPAN&gt;&lt;SPAN style="color: #9876aa;"&gt;attr &lt;/SPAN&gt;= topmostElement.getAttributes()&lt;SPAN style="color: #cc7832;"&gt;;
&lt;/SPAN&gt;&lt;SPAN style="color: #cc7832;"&gt;                                &lt;/SPAN&gt;Set&amp;lt;String&amp;gt; keys = &lt;SPAN style="color: #9876aa;"&gt;attr&lt;/SPAN&gt;.keySet()&lt;SPAN style="color: #cc7832;"&gt;;
&lt;/SPAN&gt;&lt;SPAN style="color: #cc7832;"&gt;                                for &lt;/SPAN&gt;(String key : keys) {
                                    Object value = &lt;SPAN style="color: #9876aa;"&gt;attr&lt;/SPAN&gt;.get(key)&lt;SPAN style="color: #cc7832;"&gt;;
&lt;/SPAN&gt;&lt;SPAN style="color: #cc7832;"&gt;
&lt;/SPAN&gt;&lt;SPAN style="color: #cc7832;"&gt;
&lt;/SPAN&gt;&lt;SPAN style="color: #cc7832;"&gt;
&lt;/SPAN&gt;&lt;SPAN style="color: #cc7832;"&gt;                                    if&lt;/SPAN&gt;(value != &lt;SPAN style="color: #cc7832;"&gt;null&lt;/SPAN&gt;) {
                                        message.append(key + &lt;SPAN style="color: #6a8759;"&gt;" | " &lt;/SPAN&gt;+ value + &lt;SPAN style="color: #6a8759;"&gt;"&lt;/SPAN&gt;&lt;SPAN style="color: #cc7832;"&gt;\n&lt;/SPAN&gt;&lt;SPAN style="color: #6a8759;"&gt;"&lt;/SPAN&gt;)&lt;SPAN style="color: #cc7832;"&gt;;
&lt;/SPAN&gt;&lt;SPAN style="color: #cc7832;"&gt;                                    &lt;/SPAN&gt;}

                                }
                            }

                        }
                    }
                    showDialog(&lt;SPAN style="color: #9876aa;"&gt;attr&lt;/SPAN&gt;)&lt;SPAN style="color: #cc7832;"&gt;;&lt;/SPAN&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 22:59:36 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/problem-with-the-identification-of-objects/m-p/527866#M3586</guid>
      <dc:creator>AlexanderKulikov</dc:creator>
      <dc:date>2021-12-11T22:59:36Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with the identification of objects</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/problem-with-the-identification-of-objects/m-p/527867#M3587</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Alexander, please check the following:&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;- You seem to get two IdentifyLayerResult instances back. Have you checked that neither of them contains any results?&lt;BR /&gt;- Try to increase the search tolerance, i.e. instead of 5 dp pass 30 dp for example.&lt;/P&gt;&lt;P&gt;- If none of this helps, please provide more information of the data in your scene. What layer types are in your scene? Would you be able to share your scene with us?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Gunther&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Jun 2019 09:09:44 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/problem-with-the-identification-of-objects/m-p/527867#M3587</guid>
      <dc:creator>GuntherHeppner</dc:creator>
      <dc:date>2019-06-24T09:09:44Z</dc:date>
    </item>
  </channel>
</rss>

