<?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 refreshing FeatureLayer on android device after changes made in REST serv in ArcGIS Runtime SDK for Android Questions</title>
    <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/problem-refreshing-featurelayer-on-android-device/m-p/185620#M1248</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Aleksi, another suggestion for HTTP responses. A real quick way to verify if the request is being made is if you have access to your web server logs then run the refresh() and see if the HTTP request shows up in the log.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;-Andy&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 21 May 2012 20:08:03 GMT</pubDate>
    <dc:creator>AndyGup</dc:creator>
    <dc:date>2012-05-21T20:08:03Z</dc:date>
    <item>
      <title>Problem refreshing FeatureLayer on android device after changes made in REST server</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/problem-refreshing-featurelayer-on-android-device/m-p/185616#M1244</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have problem with refreshing FeatureLayers on my android application (uses 2 base maps as TiledMap and 3 FeatureLayers) I can load the FeatureLayers without problem, but if there are changes made on the server (ie. adding or removing features from layers). Zooming, moving or other wont help either&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Only way to update the featurelayers is to remove all the featurelayers from the MapView and add them again from the server. This is way too slow for my application.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Code that i would like to get working:&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt; for (ArcGISFeatureLayer l : targetlayers) {
&amp;nbsp;&amp;nbsp; l.refresh();
&amp;nbsp; }
&lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have tried to work with MODE.ONDEMAND and MODE.SNAPSHOT, neither of them seem to bring solution.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 May 2012 11:03:51 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/problem-refreshing-featurelayer-on-android-device/m-p/185616#M1244</guid>
      <dc:creator>AleksiMajander</dc:creator>
      <dc:date>2012-05-16T11:03:51Z</dc:date>
    </item>
    <item>
      <title>Re: Problem refreshing FeatureLayer on android device after changes made in REST serv</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/problem-refreshing-featurelayer-on-android-device/m-p/185617#M1245</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Aleksi, can you clarify what the problem is? Typically if there is problem it will show up in Logcat when the app is loading/running.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;-Andy&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 May 2012 16:03:55 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/problem-refreshing-featurelayer-on-android-device/m-p/185617#M1245</guid>
      <dc:creator>AndyGup</dc:creator>
      <dc:date>2012-05-17T16:03:55Z</dc:date>
    </item>
    <item>
      <title>Re: Problem refreshing FeatureLayer on android device after changes made in REST serv</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/problem-refreshing-featurelayer-on-android-device/m-p/185618#M1246</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Lets try to clarify&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have my phone with the mobile application (2 feature layers and base map). I also have a REST server that has software that allows me to add and delete features from these layers. Now when i use my server software to add a new feature, or to delete an old one, it wont show on my phone unless i restart the mobile application.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 May 2012 07:36:04 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/problem-refreshing-featurelayer-on-android-device/m-p/185618#M1246</guid>
      <dc:creator>AleksiMajander</dc:creator>
      <dc:date>2012-05-21T07:36:04Z</dc:date>
    </item>
    <item>
      <title>Re: Problem refreshing FeatureLayer on android device after changes made in REST serv</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/problem-refreshing-featurelayer-on-android-device/m-p/185619#M1247</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Aleksi, are you able to verify if there is a request/response when the refresh() method runs? And, did any errors show up in Logcat when the refresh() runs?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If you don't know how to monitor HTTP requests for native Android apps, here's a blog post that should help: &lt;/SPAN&gt;&lt;A href="http://www.andygup.net/?p=695"&gt;http://www.andygup.net/?p=695&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;-Andy&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 May 2012 20:03:37 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/problem-refreshing-featurelayer-on-android-device/m-p/185619#M1247</guid>
      <dc:creator>AndyGup</dc:creator>
      <dc:date>2012-05-21T20:03:37Z</dc:date>
    </item>
    <item>
      <title>Re: Problem refreshing FeatureLayer on android device after changes made in REST serv</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/problem-refreshing-featurelayer-on-android-device/m-p/185620#M1248</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Aleksi, another suggestion for HTTP responses. A real quick way to verify if the request is being made is if you have access to your web server logs then run the refresh() and see if the HTTP request shows up in the log.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;-Andy&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 May 2012 20:08:03 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/problem-refreshing-featurelayer-on-android-device/m-p/185620#M1248</guid>
      <dc:creator>AndyGup</dc:creator>
      <dc:date>2012-05-21T20:08:03Z</dc:date>
    </item>
    <item>
      <title>Re: Problem refreshing FeatureLayer on android device after changes made in REST serv</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/problem-refreshing-featurelayer-on-android-device/m-p/185621#M1249</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Found a workaround by setting .setAutoRefreshOnExpiration(true); and .setExpirationInterval(3);&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Seems the problem is with caching the features when they are loaded from server.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 May 2012 15:16:47 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/problem-refreshing-featurelayer-on-android-device/m-p/185621#M1249</guid>
      <dc:creator>AleksiMajander</dc:creator>
      <dc:date>2012-05-22T15:16:47Z</dc:date>
    </item>
  </channel>
</rss>

