<?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 while loop with query in ArcGIS Runtime SDK for Android Questions</title>
    <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/while-loop-with-query/m-p/105997#M777</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello everyone, I am trying to use a while loop on my Android application but the application freezes. What I'm trying to do is track the user location (using onlocationChanged) and keep querying a FeatureLayer until the query returns a result. I am using a boolean "noResults" that is changed to false on the query callback(in order to stop the while loop)&amp;nbsp; here's what I did: "while(noResults) { //query code here }. " Is there anything I should change in the loop? are there any other alternatives to the while loop that keeps the application from freezing?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 15 Oct 2014 08:55:27 GMT</pubDate>
    <dc:creator>SaidHamri</dc:creator>
    <dc:date>2014-10-15T08:55:27Z</dc:date>
    <item>
      <title>while loop with query</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/while-loop-with-query/m-p/105997#M777</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello everyone, I am trying to use a while loop on my Android application but the application freezes. What I'm trying to do is track the user location (using onlocationChanged) and keep querying a FeatureLayer until the query returns a result. I am using a boolean "noResults" that is changed to false on the query callback(in order to stop the while loop)&amp;nbsp; here's what I did: "while(noResults) { //query code here }. " Is there anything I should change in the loop? are there any other alternatives to the while loop that keeps the application from freezing?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Oct 2014 08:55:27 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/while-loop-with-query/m-p/105997#M777</guid>
      <dc:creator>SaidHamri</dc:creator>
      <dc:date>2014-10-15T08:55:27Z</dc:date>
    </item>
    <item>
      <title>Re: while loop with query</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/while-loop-with-query/m-p/105998#M778</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Is this work happening on a background thread, using AsyncTask?&lt;/P&gt;&lt;P&gt;It could be that something is bailing out in your loop...maybe.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Oct 2014 00:13:59 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/while-loop-with-query/m-p/105998#M778</guid>
      <dc:creator>EricBader</dc:creator>
      <dc:date>2014-10-21T00:13:59Z</dc:date>
    </item>
  </channel>
</rss>

