<?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 ArcGISFeatureLayer Not Refreshed After Sync in ArcGIS Runtime SDK for Android Questions</title>
    <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/arcgisfeaturelayer-not-refreshed-after-sync/m-p/484905#M3336</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;We use ArcGIS feature layer&amp;nbsp; on the map which are intended to be cached locally and synchronized.&lt;/P&gt;&lt;P&gt; ArcGISFeatureLayer featureLayer = new ArcGISFeatureLayer(&amp;lt;url&amp;gt;, ArcGISFeatureLayer.MODE.ONDEMAND, &amp;lt;user credentials&amp;gt;)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;After doing synchronization being in Online mode with cashed data we do Refresh() for these layers:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for(com.esri.android.map.Layer layer : &amp;lt;MapView&amp;gt;.getLayers())&lt;/P&gt;&lt;P&gt; {&lt;/P&gt;&lt;P&gt;&amp;nbsp; if (layer instanceof ArcGISFeatureLayer) {&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ((ArcGISFeatureLayer)layer).refresh();&lt;/P&gt;&lt;P&gt;&amp;nbsp; }&lt;/P&gt;&lt;P&gt; }&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But they are not refreshed immediately, only after some movements on the map (zooms, pans and so on…).&lt;/P&gt;&lt;P&gt;Could you please help me?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 28 Oct 2014 13:22:44 GMT</pubDate>
    <dc:creator>EduardLepner</dc:creator>
    <dc:date>2014-10-28T13:22:44Z</dc:date>
    <item>
      <title>ArcGISFeatureLayer Not Refreshed After Sync</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/arcgisfeaturelayer-not-refreshed-after-sync/m-p/484905#M3336</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;We use ArcGIS feature layer&amp;nbsp; on the map which are intended to be cached locally and synchronized.&lt;/P&gt;&lt;P&gt; ArcGISFeatureLayer featureLayer = new ArcGISFeatureLayer(&amp;lt;url&amp;gt;, ArcGISFeatureLayer.MODE.ONDEMAND, &amp;lt;user credentials&amp;gt;)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;After doing synchronization being in Online mode with cashed data we do Refresh() for these layers:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for(com.esri.android.map.Layer layer : &amp;lt;MapView&amp;gt;.getLayers())&lt;/P&gt;&lt;P&gt; {&lt;/P&gt;&lt;P&gt;&amp;nbsp; if (layer instanceof ArcGISFeatureLayer) {&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ((ArcGISFeatureLayer)layer).refresh();&lt;/P&gt;&lt;P&gt;&amp;nbsp; }&lt;/P&gt;&lt;P&gt; }&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But they are not refreshed immediately, only after some movements on the map (zooms, pans and so on…).&lt;/P&gt;&lt;P&gt;Could you please help me?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Oct 2014 13:22:44 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/arcgisfeaturelayer-not-refreshed-after-sync/m-p/484905#M3336</guid>
      <dc:creator>EduardLepner</dc:creator>
      <dc:date>2014-10-28T13:22:44Z</dc:date>
    </item>
  </channel>
</rss>

