<?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: Bidirectional Sync Fails after device goes to sleep in ArcGIS Runtime SDK for Android Questions</title>
    <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/bidirectional-sync-fails-after-device-goes-to/m-p/579121#M3936</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Alex,&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;1)&amp;nbsp; What is your code snippet for the opening the geodatabase? &lt;STRONG&gt; &lt;EM&gt;We are adding in Polygon, Polyline and then Points because the SDK has no ability to reorder layers after they are added.&lt;/EM&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #660e7a; font-style: italic;"&gt;localGDB &lt;/SPAN&gt;= &lt;SPAN style="color: #000080; font-weight: bold;"&gt;new &lt;/SPAN&gt;Geodatabase(&lt;SPAN style="color: #660e7a; font-weight: bold;"&gt;priorGDBString&lt;/SPAN&gt;);&lt;/P&gt;&lt;P&gt;FeatureInformation.&lt;SPAN style="font-style: italic;"&gt;ReCreateInstance&lt;/SPAN&gt;();&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000080; font-weight: bold;"&gt;for &lt;/SPAN&gt;(GeodatabaseFeatureTable gdbFeatureTable : &lt;SPAN style="color: #660e7a;"&gt;localGDB&lt;/SPAN&gt;.getGeodatabaseTables()) {&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;SPAN style="color: #000080; font-weight: bold;"&gt;if &lt;/SPAN&gt;(gdbFeatureTable.hasGeometry()) {&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;SPAN style="color: #000080; font-weight: bold;"&gt;if&lt;/SPAN&gt;(gdbFeatureTable.getGeometryType().equals(Geometry.Type.&lt;SPAN style="color: #660e7a; font-weight: bold; font-style: italic;"&gt;POLYGON&lt;/SPAN&gt;)) {&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;SPAN style="color: #660e7a; font-style: italic;"&gt;mMapView&lt;/SPAN&gt;.addLayer(&lt;SPAN style="color: #000080; font-weight: bold;"&gt;new &lt;/SPAN&gt;FeatureLayer(gdbFeatureTable));&lt;/P&gt;&lt;P&gt;&amp;nbsp; }&lt;/P&gt;&lt;P&gt;&amp;nbsp; }&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000080; font-weight: bold;"&gt;for &lt;/SPAN&gt;(GeodatabaseFeatureTable gdbFeatureTable : &lt;SPAN style="color: #660e7a; font-style: italic;"&gt;localGDB&lt;/SPAN&gt;.getGeodatabaseTables()) {&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;SPAN style="color: #000080; font-weight: bold;"&gt;if &lt;/SPAN&gt;(gdbFeatureTable.hasGeometry()) {&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;SPAN style="color: #000080; font-weight: bold;"&gt;if&lt;/SPAN&gt;(gdbFeatureTable.getGeometryType().equals(Geometry.Type.&lt;SPAN style="color: #660e7a; font-weight: bold; font-style: italic;"&gt;POLYLINE&lt;/SPAN&gt;)) {&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;SPAN style="color: #660e7a; font-style: italic;"&gt;mMapView&lt;/SPAN&gt;.addLayer(&lt;SPAN style="color: #000080; font-weight: bold;"&gt;new &lt;/SPAN&gt;FeatureLayer(gdbFeatureTable));&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;SPAN style="color: #808080; font-style: italic;"&gt;//gdbLayerStatus = "Added";&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #808080; font-style: italic;"&gt;&amp;nbsp; //FeatureLayer x = new FeatureLayer(gdbFeatureTable);&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #808080; font-style: italic;"&gt;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;}&lt;/P&gt;&lt;P&gt;&amp;nbsp; }&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000080; font-weight: bold;"&gt;for &lt;/SPAN&gt;(GeodatabaseFeatureTable gdbFeatureTable : &lt;SPAN style="color: #660e7a; font-style: italic;"&gt;localGDB&lt;/SPAN&gt;.getGeodatabaseTables()) {&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;SPAN style="color: #000080; font-weight: bold;"&gt;if &lt;/SPAN&gt;(gdbFeatureTable.hasGeometry()) {&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;SPAN style="color: #000080; font-weight: bold;"&gt;if&lt;/SPAN&gt;(gdbFeatureTable.getGeometryType().equals(Geometry.Type.&lt;SPAN style="color: #660e7a; font-weight: bold; font-style: italic;"&gt;POINT&lt;/SPAN&gt;)) {&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;SPAN style="color: #660e7a; font-style: italic;"&gt;mMapView&lt;/SPAN&gt;.addLayer(&lt;SPAN style="color: #000080; font-weight: bold;"&gt;new &lt;/SPAN&gt;FeatureLayer(gdbFeatureTable));&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;SPAN style="color: #808080; font-style: italic;"&gt;//gdbLayerStatus = "Added";&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #808080; font-style: italic;"&gt;&amp;nbsp; //FeatureLayer x = new FeatureLayer(gdbFeatureTable);&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #808080; font-style: italic;"&gt;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;}&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;&lt;SPAN style="color: #3d3d3d; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;2)&amp;nbsp; Can you use the Android Device Monitor to confirm that your path to the geodatabase is correct?&amp;nbsp; &lt;STRONG&gt;Yes in logcat path is always showing up correctly.&amp;nbsp; &lt;/STRONG&gt;Even when stepping into ESRI Runtime SDK GeodatabaseSync Task all paths and parameters look correct.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;3)&amp;nbsp; &lt;SPAN style="color: #3d3d3d; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;Is the insert of new features to the existing geodatabase or is it coming from the server attempting to sync?&amp;nbsp; &lt;STRONG&gt;When using an internal feature service I get the same behavior and I see no errors on the ArcGIS Service side.&amp;nbsp; New features from my device always upload correctly.&amp;nbsp; It is the insert of new features collected by others that do not appear to insert properly.&amp;nbsp; There are a bunch of files in the GDB directory generated by the SDK.&amp;nbsp; There appears to be a temporary Geodatabase in the folder that I never see if the process is successful.&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;&lt;STRONG&gt;&lt;IMG class="image-1 jive-image" height="371" src="https://community.esri.com/legacyfs/online/207736_pastedImage_4.png" style="height: 371px; width: 771.879px;" width="772" /&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 14 Jun 2016 17:47:51 GMT</pubDate>
    <dc:creator>Anonymous User</dc:creator>
    <dc:date>2016-06-14T17:47:51Z</dc:date>
    <item>
      <title>Bidirectional Sync Fails after device goes to sleep</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/bidirectional-sync-fails-after-device-goes-to/m-p/579115#M3930</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Using the offline editor sample I consistently get the error on download portion of bidirectional sync "File opened that is not a database file".&amp;nbsp; The error presents itself during the following situation.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1.&amp;nbsp; Local runtime GDB created from feature service.&lt;/P&gt;&lt;P&gt;2.&amp;nbsp; Android app is put in background or device goes to sleep.&lt;/P&gt;&lt;P&gt;3.&amp;nbsp; Feature collected on device and another feature is created either on AGOL or on another device in the same extent.&lt;/P&gt;&lt;P&gt;4.&amp;nbsp; GeodatabaseSyncTask is run as per OfflineEditor sample.&lt;/P&gt;&lt;P&gt;5.&amp;nbsp; Upload is successful but features from other device or AGOL do not show up.&amp;nbsp; Error generated "File opened that is not a database file".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This behavior does not occur if device is not allowed to go to sleep and application is kept active in the forefront on device.&amp;nbsp; Error is generated in the syncResponseCallback.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CallbackListener&amp;lt;Map&amp;lt;Integer, GeodatabaseFeatureTableEditErrors&amp;gt;&amp;gt; syncResponseCallback = &lt;SPAN style="color: #000080; font-weight: bold;"&gt;new &lt;/SPAN&gt;CallbackListener&amp;lt;Map&amp;lt;Integer, GeodatabaseFeatureTableEditErrors&amp;gt;&amp;gt;() {&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;SPAN style="color: #808000;"&gt;@Override&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #808000;"&gt;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #000080; font-weight: bold;"&gt;public void &lt;/SPAN&gt;onCallback(Map&amp;lt;Integer, GeodatabaseFeatureTableEditErrors&amp;gt; objs) {&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;SPAN style="font-style: italic;"&gt;showProgress&lt;/SPAN&gt;(&lt;SPAN style="color: #660e7a;"&gt;activity&lt;/SPAN&gt;, &lt;SPAN style="color: #000080; font-weight: bold;"&gt;false&lt;/SPAN&gt;);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;SPAN style="color: #000080; font-weight: bold;"&gt;if &lt;/SPAN&gt;(objs != &lt;SPAN style="color: #000080; font-weight: bold;"&gt;null&lt;/SPAN&gt;) {&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;SPAN style="color: #000080; font-weight: bold;"&gt;if &lt;/SPAN&gt;(objs.size() &amp;gt; &lt;SPAN style="color: #0000ff;"&gt;0&lt;/SPAN&gt;) {&lt;/P&gt;&lt;P&gt;&amp;nbsp; S1ViewerActivity.&lt;SPAN style="color: #660e7a; font-style: italic;"&gt;downloadProgressBar&lt;/SPAN&gt;.setVisibility(View.&lt;SPAN style="color: #660e7a; font-weight: bold; font-style: italic;"&gt;GONE&lt;/SPAN&gt;);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;SPAN style="font-style: italic;"&gt;showMessage&lt;/SPAN&gt;(&lt;SPAN style="color: #660e7a;"&gt;activity&lt;/SPAN&gt;, &lt;SPAN style="color: #008000; font-weight: bold;"&gt;"Sync Completed With Errors"&lt;/SPAN&gt;);&lt;/P&gt;&lt;P&gt;&amp;nbsp; } &lt;SPAN style="color: #000080; font-weight: bold;"&gt;else &lt;/SPAN&gt;{&lt;/P&gt;&lt;P&gt;&amp;nbsp; S1ViewerActivity.&lt;SPAN style="color: #660e7a; font-style: italic;"&gt;downloadProgressBar&lt;/SPAN&gt;.setVisibility(View.&lt;SPAN style="color: #660e7a; font-weight: bold; font-style: italic;"&gt;GONE&lt;/SPAN&gt;);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;SPAN style="font-style: italic;"&gt;showMessage&lt;/SPAN&gt;(&lt;SPAN style="color: #660e7a;"&gt;activity&lt;/SPAN&gt;, &lt;SPAN style="color: #008000; font-weight: bold;"&gt;"Sync Completed Without Errors"&lt;/SPAN&gt;);&lt;/P&gt;&lt;P&gt;&amp;nbsp; }&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; } &lt;SPAN style="color: #000080; font-weight: bold;"&gt;else &lt;/SPAN&gt;{&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;SPAN style="font-style: italic;"&gt;showMessage&lt;/SPAN&gt;(&lt;SPAN style="color: #660e7a;"&gt;activity&lt;/SPAN&gt;, &lt;SPAN style="color: #008000; font-weight: bold;"&gt;"Sync Completed Without Errors"&lt;/SPAN&gt;);&lt;/P&gt;&lt;P&gt;&amp;nbsp; }&lt;/P&gt;&lt;P&gt;&amp;nbsp; }&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;SPAN style="color: #808000;"&gt;@Override&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #808000;"&gt;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #000080; font-weight: bold;"&gt;public void &lt;/SPAN&gt;onError(Throwable e) {&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;SPAN style="font-style: italic;"&gt;showMessage&lt;/SPAN&gt;(&lt;SPAN style="color: #660e7a;"&gt;activity&lt;/SPAN&gt;, e.getMessage());&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;SPAN style="color: #808080; font-style: italic;"&gt;//showProgress(activity, false);&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #808080; font-style: italic;"&gt;&amp;nbsp; //e.printStackTrace();&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #808080; font-style: italic;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #808080; font-style: italic;"&gt;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;}&lt;/P&gt;&lt;P&gt;};&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is the full code for this class (very similar to OfflineEditor GDBUtility class)...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000080; font-weight: bold;"&gt;package &lt;/SPAN&gt;gov.s1.s1mobile;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000080; font-weight: bold;"&gt;import &lt;/SPAN&gt;android.app.AlertDialog;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000080; font-weight: bold;"&gt;import &lt;/SPAN&gt;android.content.Context;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000080; font-weight: bold;"&gt;import &lt;/SPAN&gt;android.content.DialogInterface;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000080; font-weight: bold;"&gt;import &lt;/SPAN&gt;android.content.Intent;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000080; font-weight: bold;"&gt;import &lt;/SPAN&gt;android.view.View;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000080; font-weight: bold;"&gt;import &lt;/SPAN&gt;android.widget.Toast;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000080; font-weight: bold;"&gt;import &lt;/SPAN&gt;com.esri.core.ags.FeatureServiceInfo;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000080; font-weight: bold;"&gt;import &lt;/SPAN&gt;com.esri.core.geodatabase.GeodatabaseFeatureTableEditErrors;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000080; font-weight: bold;"&gt;import &lt;/SPAN&gt;com.esri.core.io.UserCredentials;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000080; font-weight: bold;"&gt;import &lt;/SPAN&gt;com.esri.core.map.CallbackListener;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000080; font-weight: bold;"&gt;import &lt;/SPAN&gt;com.esri.core.tasks.geodatabase.GeodatabaseStatusCallback;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000080; font-weight: bold;"&gt;import &lt;/SPAN&gt;com.esri.core.tasks.geodatabase.GeodatabaseStatusInfo;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000080; font-weight: bold;"&gt;import &lt;/SPAN&gt;com.esri.core.tasks.geodatabase.GeodatabaseSyncTask;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000080; font-weight: bold;"&gt;import &lt;/SPAN&gt;com.esri.core.tasks.geodatabase.SyncGeodatabaseParameters;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000080; font-weight: bold;"&gt;import &lt;/SPAN&gt;java.util.Map;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000080; font-weight: bold;"&gt;public class &lt;/SPAN&gt;SyncUtility {&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;SPAN style="color: #000080; font-weight: bold;"&gt;private static &lt;/SPAN&gt;GeodatabaseSyncTask &lt;SPAN style="color: #660e7a; font-style: italic;"&gt;gdbTask&lt;/SPAN&gt;;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;SPAN style="color: #000080; font-weight: bold;"&gt;public static final &lt;/SPAN&gt;String &lt;SPAN style="color: #660e7a; font-weight: bold; font-style: italic;"&gt;TAG &lt;/SPAN&gt;= &lt;SPAN style="color: #008000; font-weight: bold;"&gt;"SyncUtility"&lt;/SPAN&gt;;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;SPAN style="color: #000080; font-weight: bold;"&gt;public static &lt;/SPAN&gt;UserCredentials &lt;SPAN style="color: #660e7a; font-style: italic;"&gt;creds&lt;/SPAN&gt;;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;SPAN style="color: #808080; font-style: italic;"&gt;//public static String dirPathHidden;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #808080; font-style: italic;"&gt;&amp;nbsp; //public static ProgressBar downloadProgressBar;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #808080; font-style: italic;"&gt;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #000080; font-weight: bold;"&gt;public static boolean &lt;/SPAN&gt;&lt;SPAN style="color: #660e7a; font-style: italic;"&gt;Completed &lt;/SPAN&gt;= &lt;SPAN style="color: #000080; font-weight: bold;"&gt;false&lt;/SPAN&gt;;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;SPAN style="color: #808080; font-style: italic;"&gt;// upload and synchronize local geodatabase to the server&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #808080; font-style: italic;"&gt;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #000080; font-weight: bold;"&gt;static void &lt;/SPAN&gt;synchronize(&lt;SPAN style="color: #000080; font-weight: bold;"&gt;final &lt;/SPAN&gt;S1ViewerActivity activity, UserCredentials AgencyCredentials) {&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;SPAN style="font-style: italic;"&gt;showProgress&lt;/SPAN&gt;(activity, &lt;SPAN style="color: #000080; font-weight: bold;"&gt;true&lt;/SPAN&gt;);&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #808080; font-style: italic;"&gt;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;String url = S1ViewerActivity.&lt;SPAN style="color: #660e7a; font-style: italic;"&gt;localGDB&lt;/SPAN&gt;.getServiceURL();&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;SPAN style="color: #660e7a; font-style: italic;"&gt;creds &lt;/SPAN&gt;= AgencyCredentials;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;SPAN style="color: #660e7a; font-style: italic;"&gt;gdbTask &lt;/SPAN&gt;= &lt;SPAN style="color: #000080; font-weight: bold;"&gt;new &lt;/SPAN&gt;GeodatabaseSyncTask(url, AgencyCredentials);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;SPAN style="color: #660e7a; font-style: italic;"&gt;gdbTask&lt;/SPAN&gt;.fetchFeatureServiceInfo(&lt;SPAN style="color: #000080; font-weight: bold;"&gt;new &lt;/SPAN&gt;CallbackListener&amp;lt;FeatureServiceInfo&amp;gt;() {&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;SPAN style="color: #808000;"&gt;@Override&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #808000;"&gt;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #000080; font-weight: bold;"&gt;public void &lt;/SPAN&gt;onError(Throwable e) {&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;SPAN style="color: #808080; font-style: italic;"&gt;// &lt;/SPAN&gt;&lt;SPAN style="color: #0073bf; font-weight: bold; font-style: italic;"&gt;TODO Auto-generated method stub&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #0073bf; font-weight: bold; font-style: italic;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #0073bf; font-weight: bold; font-style: italic;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #0073bf; font-weight: bold; font-style: italic;"&gt;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="font-style: italic;"&gt;showMessage&lt;/SPAN&gt;(&lt;SPAN style="color: #660e7a;"&gt;activity&lt;/SPAN&gt;, e.getMessage());&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;SPAN style="font-style: italic;"&gt;showProgress&lt;/SPAN&gt;(&lt;SPAN style="color: #660e7a;"&gt;activity&lt;/SPAN&gt;, &lt;SPAN style="color: #000080; font-weight: bold;"&gt;false&lt;/SPAN&gt;);&lt;/P&gt;&lt;P&gt;&amp;nbsp; String errorMessage = e.getMessage();&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;SPAN style="color: #000080; font-weight: bold;"&gt;if &lt;/SPAN&gt;(errorMessage.contains(&lt;SPAN style="color: #008000; font-weight: bold;"&gt;"Error while generating a token"&lt;/SPAN&gt;)) {&lt;/P&gt;&lt;P&gt; &lt;SPAN style="color: #808080; font-style: italic;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #808080; font-style: italic;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #808080; font-style: italic;"&gt;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;Intent newActivity = &lt;SPAN style="color: #000080; font-weight: bold;"&gt;new &lt;/SPAN&gt;Intent(&lt;SPAN style="color: #660e7a;"&gt;activity&lt;/SPAN&gt;,FeatureServiceLogin.&lt;SPAN style="color: #000080; font-weight: bold;"&gt;class&lt;/SPAN&gt;);&lt;/P&gt;&lt;P&gt;&amp;nbsp; String errorLabel = &lt;SPAN style="color: #008000; font-weight: bold;"&gt;"error"&lt;/SPAN&gt;;&lt;/P&gt;&lt;P&gt;&amp;nbsp; newActivity.putExtra(&lt;SPAN style="color: #008000; font-weight: bold;"&gt;"errorLabel"&lt;/SPAN&gt;,&lt;/P&gt;&lt;P&gt;&amp;nbsp; errorLabel);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; newActivity.putExtra(&lt;SPAN style="color: #008000; font-weight: bold;"&gt;"sync"&lt;/SPAN&gt;, &lt;SPAN style="color: #000080; font-weight: bold;"&gt;true&lt;/SPAN&gt;);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;SPAN style="color: #660e7a;"&gt;activity&lt;/SPAN&gt;.startActivity(newActivity);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; }&lt;SPAN style="color: #000080; font-weight: bold;"&gt;else if &lt;/SPAN&gt;(errorMessage.contains(&lt;SPAN style="color: #008000; font-weight: bold;"&gt;"Unauthorized access to a secure service"&lt;/SPAN&gt;)) {&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;SPAN style="font-style: italic;"&gt;showMessage&lt;/SPAN&gt;(&lt;SPAN style="color: #660e7a;"&gt;activity&lt;/SPAN&gt;, &lt;SPAN style="color: #008000; font-weight: bold;"&gt;"You are not logged in as the correct user to Sync this database. Please log in as the User who downloaded the database."&lt;/SPAN&gt;);&lt;/P&gt;&lt;P&gt;&amp;nbsp; }&lt;/P&gt;&lt;P&gt;&amp;nbsp; }&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;SPAN style="color: #808000;"&gt;@Override&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #808000;"&gt;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #000080; font-weight: bold;"&gt;public void &lt;/SPAN&gt;onCallback(FeatureServiceInfo objs) {&lt;/P&gt;&lt;P&gt;&amp;nbsp; Boolean test = objs.getSyncCapabilities().isRollbackOnFailureSupported();&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;SPAN style="color: #000080; font-weight: bold;"&gt;if &lt;/SPAN&gt;(objs.isSyncEnabled()) {&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;SPAN style="font-style: italic;"&gt;doSyncAllInOne&lt;/SPAN&gt;(&lt;SPAN style="color: #660e7a;"&gt;activity&lt;/SPAN&gt;);&lt;/P&gt;&lt;P&gt;&amp;nbsp; }&lt;/P&gt;&lt;P&gt;&amp;nbsp; }&lt;/P&gt;&lt;P&gt;&amp;nbsp; });&lt;/P&gt;&lt;P&gt;&amp;nbsp; }&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;SPAN style="color: #808080; font-style: italic;"&gt;/**&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #808080; font-style: italic;"&gt;&amp;nbsp; * All-in-one method used...&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #808080; font-style: italic;"&gt;&amp;nbsp; *&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #808080; font-style: italic;"&gt;&amp;nbsp; * &lt;/SPAN&gt;&lt;SPAN style="color: #808080; font-weight: bold; font-style: italic;"&gt;@throws &lt;/SPAN&gt;&lt;SPAN style="color: #808080; font-style: italic;"&gt;Exception&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #808080; font-style: italic;"&gt;&amp;nbsp; */&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #808080; font-style: italic;"&gt;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #000080; font-weight: bold;"&gt;private static void &lt;/SPAN&gt;doSyncAllInOne(&lt;SPAN style="color: #000080; font-weight: bold;"&gt;final &lt;/SPAN&gt;S1ViewerActivity activity) {&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;SPAN style="color: #000080; font-weight: bold;"&gt;try &lt;/SPAN&gt;{&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;SPAN style="color: #808080; font-style: italic;"&gt;// get sync parameters from geodatabase&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #808080; font-style: italic;"&gt;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #000080; font-weight: bold;"&gt;final &lt;/SPAN&gt;SyncGeodatabaseParameters syncParams = S1ViewerActivity.&lt;SPAN style="color: #660e7a; font-style: italic;"&gt;localGDB&lt;/SPAN&gt;.getSyncParameters();&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #808080; font-style: italic;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #808080; font-style: italic;"&gt;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;CallbackListener&amp;lt;Map&amp;lt;Integer, GeodatabaseFeatureTableEditErrors&amp;gt;&amp;gt; syncResponseCallback = &lt;SPAN style="color: #000080; font-weight: bold;"&gt;new &lt;/SPAN&gt;CallbackListener&amp;lt;Map&amp;lt;Integer, GeodatabaseFeatureTableEditErrors&amp;gt;&amp;gt;() {&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;SPAN style="color: #808000;"&gt;@Override&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #808000;"&gt;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #000080; font-weight: bold;"&gt;public void &lt;/SPAN&gt;onCallback(Map&amp;lt;Integer, GeodatabaseFeatureTableEditErrors&amp;gt; objs) {&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;SPAN style="font-style: italic;"&gt;showProgress&lt;/SPAN&gt;(&lt;SPAN style="color: #660e7a;"&gt;activity&lt;/SPAN&gt;, &lt;SPAN style="color: #000080; font-weight: bold;"&gt;false&lt;/SPAN&gt;);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;SPAN style="color: #000080; font-weight: bold;"&gt;if &lt;/SPAN&gt;(objs != &lt;SPAN style="color: #000080; font-weight: bold;"&gt;null&lt;/SPAN&gt;) {&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;SPAN style="color: #000080; font-weight: bold;"&gt;if &lt;/SPAN&gt;(objs.size() &amp;gt; &lt;SPAN style="color: #0000ff;"&gt;0&lt;/SPAN&gt;) {&lt;/P&gt;&lt;P&gt;&amp;nbsp; S1ViewerActivity.&lt;SPAN style="color: #660e7a; font-style: italic;"&gt;downloadProgressBar&lt;/SPAN&gt;.setVisibility(View.&lt;SPAN style="color: #660e7a; font-weight: bold; font-style: italic;"&gt;GONE&lt;/SPAN&gt;);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;SPAN style="font-style: italic;"&gt;showMessage&lt;/SPAN&gt;(&lt;SPAN style="color: #660e7a;"&gt;activity&lt;/SPAN&gt;, &lt;SPAN style="color: #008000; font-weight: bold;"&gt;"Sync Completed With Errors"&lt;/SPAN&gt;);&lt;/P&gt;&lt;P&gt;&amp;nbsp; } &lt;SPAN style="color: #000080; font-weight: bold;"&gt;else &lt;/SPAN&gt;{&lt;/P&gt;&lt;P&gt;&amp;nbsp; S1ViewerActivity.&lt;SPAN style="color: #660e7a; font-style: italic;"&gt;downloadProgressBar&lt;/SPAN&gt;.setVisibility(View.&lt;SPAN style="color: #660e7a; font-weight: bold; font-style: italic;"&gt;GONE&lt;/SPAN&gt;);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;SPAN style="font-style: italic;"&gt;showMessage&lt;/SPAN&gt;(&lt;SPAN style="color: #660e7a;"&gt;activity&lt;/SPAN&gt;, &lt;SPAN style="color: #008000; font-weight: bold;"&gt;"Sync Completed Without Errors"&lt;/SPAN&gt;);&lt;/P&gt;&lt;P&gt;&amp;nbsp; }&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; } &lt;SPAN style="color: #000080; font-weight: bold;"&gt;else &lt;/SPAN&gt;{&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;SPAN style="font-style: italic;"&gt;showMessage&lt;/SPAN&gt;(&lt;SPAN style="color: #660e7a;"&gt;activity&lt;/SPAN&gt;, &lt;SPAN style="color: #008000; font-weight: bold;"&gt;"Sync Completed Without Errors"&lt;/SPAN&gt;);&lt;/P&gt;&lt;P&gt;&amp;nbsp; }&lt;/P&gt;&lt;P&gt;&amp;nbsp; }&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;SPAN style="color: #808000;"&gt;@Override&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #808000;"&gt;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #000080; font-weight: bold;"&gt;public void &lt;/SPAN&gt;onError(Throwable e) {&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;SPAN style="font-style: italic;"&gt;showMessage&lt;/SPAN&gt;(&lt;SPAN style="color: #660e7a;"&gt;activity&lt;/SPAN&gt;, e.getMessage());&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;SPAN style="color: #808080; font-style: italic;"&gt;//showProgress(activity, false);&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #808080; font-style: italic;"&gt;&amp;nbsp; //e.printStackTrace();&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #808080; font-style: italic;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #808080; font-style: italic;"&gt;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;}&lt;/P&gt;&lt;P&gt;&amp;nbsp; };&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; GeodatabaseStatusCallback statusCallback = &lt;SPAN style="color: #000080; font-weight: bold;"&gt;new &lt;/SPAN&gt;GeodatabaseStatusCallback() {&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;SPAN style="color: #808000;"&gt;@Override&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #808000;"&gt;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #000080; font-weight: bold;"&gt;public void &lt;/SPAN&gt;statusUpdated(GeodatabaseStatusInfo status) {&lt;/P&gt;&lt;P&gt;&amp;nbsp; S1ViewerActivity.&lt;SPAN style="font-style: italic;"&gt;appendLog&lt;/SPAN&gt;(status.getStatus().toString());&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;SPAN style="font-style: italic;"&gt;showMessage&lt;/SPAN&gt;(&lt;SPAN style="color: #660e7a;"&gt;activity&lt;/SPAN&gt;, status.getStatus().toString());&lt;/P&gt;&lt;P&gt;&amp;nbsp; String x = &lt;SPAN style="color: #008000; font-weight: bold;"&gt;""&lt;/SPAN&gt;;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #808080; font-style: italic;"&gt;/* // &lt;/SPAN&gt;&lt;SPAN style="color: #0073bf; font-weight: bold; font-style: italic;"&gt;TODO Auto-generated method stub&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #808080; font-style: italic;"&gt;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #660e7a; font-style: italic;"&gt;gdbTask&lt;/SPAN&gt;.syncGeodatabase(syncParams, S1ViewerActivity.&lt;SPAN style="color: #660e7a; font-style: italic;"&gt;localGDB&lt;/SPAN&gt;, statusCallback, syncResponseCallback);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;SPAN style="font-style: italic;"&gt;showMessage&lt;/SPAN&gt;(activity, &lt;SPAN style="color: #008000; font-weight: bold;"&gt;"Starting Sync"&lt;/SPAN&gt;);&lt;/P&gt;&lt;P&gt;&amp;nbsp; } &lt;SPAN style="color: #000080; font-weight: bold;"&gt;catch &lt;/SPAN&gt;(Exception e) {&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;SPAN style="color: #808080; font-style: italic;"&gt;//S1ViewerActivity.featureServiceError = e.getMessage();&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #808080; font-style: italic;"&gt;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="font-style: italic;"&gt;showMessage&lt;/SPAN&gt;(activity, e.getMessage());&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;SPAN style="font-style: italic;"&gt;showProgress&lt;/SPAN&gt;(activity, &lt;SPAN style="color: #000080; font-weight: bold;"&gt;false&lt;/SPAN&gt;);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;SPAN style="color: #808080; font-style: italic;"&gt;//e.printStackTrace();&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #808080; font-style: italic;"&gt;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;}&lt;/P&gt;&lt;P&gt;&amp;nbsp; }&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;SPAN style="color: #000080; font-weight: bold;"&gt;static void &lt;/SPAN&gt;showProgress(&lt;SPAN style="color: #000080; font-weight: bold;"&gt;final &lt;/SPAN&gt;S1ViewerActivity activity, &lt;SPAN style="color: #000080; font-weight: bold;"&gt;final boolean &lt;/SPAN&gt;showProgressbar) {&lt;/P&gt;&lt;P&gt;&amp;nbsp; activity.runOnUiThread(&lt;SPAN style="color: #000080; font-weight: bold;"&gt;new &lt;/SPAN&gt;Runnable() {&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;SPAN style="color: #808000;"&gt;@Override&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #808000;"&gt;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #000080; font-weight: bold;"&gt;public void &lt;/SPAN&gt;run() {&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #808080; font-style: italic;"&gt;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #000080; font-weight: bold;"&gt;if &lt;/SPAN&gt;(!&lt;SPAN style="color: #660e7a;"&gt;showProgressbar&lt;/SPAN&gt;) {&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;SPAN style="color: #660e7a;"&gt;activity&lt;/SPAN&gt;.setProgressBarIndeterminateVisibility(&lt;SPAN style="color: #660e7a;"&gt;showProgressbar&lt;/SPAN&gt;);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;SPAN style="color: #660e7a;"&gt;activity&lt;/SPAN&gt;.&lt;SPAN style="color: #660e7a; font-style: italic;"&gt;downloadProgressBar&lt;/SPAN&gt;.setVisibility(View.&lt;SPAN style="color: #660e7a; font-weight: bold; font-style: italic;"&gt;GONE&lt;/SPAN&gt;);&lt;/P&gt;&lt;P&gt;&amp;nbsp; }&lt;SPAN style="color: #000080; font-weight: bold;"&gt;else&lt;/SPAN&gt;{&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;SPAN style="color: #660e7a;"&gt;activity&lt;/SPAN&gt;.&lt;SPAN style="color: #660e7a; font-style: italic;"&gt;downloadProgressBar&lt;/SPAN&gt;.setVisibility(View.&lt;SPAN style="color: #660e7a; font-weight: bold; font-style: italic;"&gt;VISIBLE&lt;/SPAN&gt;);&lt;/P&gt;&lt;P&gt;&amp;nbsp; }&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; }&lt;/P&gt;&lt;P&gt;&amp;nbsp; });&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; }&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;SPAN style="color: #000080; font-weight: bold;"&gt;static void &lt;/SPAN&gt;showMessage(&lt;SPAN style="color: #000080; font-weight: bold;"&gt;final &lt;/SPAN&gt;S1ViewerActivity activity, &lt;SPAN style="color: #000080; font-weight: bold;"&gt;final &lt;/SPAN&gt;String message) {&lt;/P&gt;&lt;P&gt;&amp;nbsp; activity.runOnUiThread(&lt;SPAN style="color: #000080; font-weight: bold;"&gt;new &lt;/SPAN&gt;Runnable() {&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;SPAN style="color: #808000;"&gt;@Override&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #808000;"&gt;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #000080; font-weight: bold;"&gt;public void &lt;/SPAN&gt;run() {&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;SPAN style="color: #808080; font-style: italic;"&gt;//if (message != null || message )&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #808080; font-style: italic;"&gt;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #000080; font-weight: bold;"&gt;try&lt;/SPAN&gt;{&lt;/P&gt;&lt;P&gt;&amp;nbsp; S1ViewerActivity.&lt;SPAN style="font-style: italic;"&gt;appendLog&lt;/SPAN&gt;(&lt;SPAN style="color: #660e7a;"&gt;message&lt;/SPAN&gt;);&lt;/P&gt;&lt;P&gt;&amp;nbsp; String pMessage = &lt;SPAN style="color: #008000; font-weight: bold;"&gt;""&lt;/SPAN&gt;;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;SPAN style="color: #000080; font-weight: bold;"&gt;if &lt;/SPAN&gt;(&lt;SPAN style="color: #660e7a;"&gt;message&lt;/SPAN&gt;.contains(&lt;SPAN style="color: #008000; font-weight: bold;"&gt;"Sync Completed Without Errors"&lt;/SPAN&gt;)) {&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #808080; font-style: italic;"&gt;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;S1ViewerActivity.&lt;SPAN style="font-style: italic;"&gt;AfterSync&lt;/SPAN&gt;();&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;SPAN style="color: #000080; font-weight: bold;"&gt;if &lt;/SPAN&gt;(S1ViewerActivity.&lt;SPAN style="color: #660e7a; font-style: italic;"&gt;numberPhotos &lt;/SPAN&gt;!= &lt;SPAN style="color: #000080; font-weight: bold;"&gt;null&lt;/SPAN&gt;) {&lt;/P&gt;&lt;P&gt;&amp;nbsp; pMessage = &lt;SPAN style="color: #008000; font-weight: bold;"&gt;"Sync has completed. &lt;/SPAN&gt;&lt;SPAN style="color: #000080; font-weight: bold;"&gt;\n\n&lt;/SPAN&gt;&lt;SPAN style="color: #008000; font-weight: bold;"&gt;" &lt;/SPAN&gt;+ S1ViewerActivity.&lt;SPAN style="color: #660e7a; font-style: italic;"&gt;numFeaturesAddedInteger &lt;/SPAN&gt;+ &lt;SPAN style="color: #008000; font-weight: bold;"&gt;" feature(s) have been synchronized. &lt;/SPAN&gt;&lt;SPAN style="color: #000080; font-weight: bold;"&gt;\n\n&lt;/SPAN&gt;&lt;SPAN style="color: #008000; font-weight: bold;"&gt;" &lt;/SPAN&gt;+ S1ViewerActivity.&lt;SPAN style="color: #660e7a; font-style: italic;"&gt;numberPhotos &lt;/SPAN&gt;+ &lt;SPAN style="color: #008000; font-weight: bold;"&gt;" photos have been synchronized."&lt;/SPAN&gt;;&lt;/P&gt;&lt;P&gt;&amp;nbsp; }&lt;SPAN style="color: #000080; font-weight: bold;"&gt;else&lt;/SPAN&gt;{&lt;/P&gt;&lt;P&gt;&amp;nbsp; pMessage = &lt;SPAN style="color: #008000; font-weight: bold;"&gt;"Sync has completed. &lt;/SPAN&gt;&lt;SPAN style="color: #000080; font-weight: bold;"&gt;\n\n&lt;/SPAN&gt;&lt;SPAN style="color: #008000; font-weight: bold;"&gt;" &lt;/SPAN&gt;+ S1ViewerActivity.&lt;SPAN style="color: #660e7a; font-style: italic;"&gt;numFeaturesAddedInteger &lt;/SPAN&gt;+ &lt;SPAN style="color: #008000; font-weight: bold;"&gt;" feature(s) have been synchronized."&lt;/SPAN&gt;;&lt;/P&gt;&lt;P&gt;&amp;nbsp; }&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;SPAN style="font-style: italic;"&gt;showPrompt&lt;/SPAN&gt;(pMessage, &lt;SPAN style="color: #660e7a;"&gt;activity&lt;/SPAN&gt;);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; }&lt;SPAN style="color: #000080; font-weight: bold;"&gt;else if &lt;/SPAN&gt;(&lt;SPAN style="color: #660e7a;"&gt;message&lt;/SPAN&gt;.contains(&lt;SPAN style="color: #008000; font-weight: bold;"&gt;"Sync Completed With Errors"&lt;/SPAN&gt;)) {&lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;SPAN style="color: #808080; font-style: italic;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #808080; font-style: italic;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #808080; font-style: italic;"&gt;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;pMessage = &lt;SPAN style="color: #008000; font-weight: bold;"&gt;"An error occured. Sync has NOT completed. " &lt;/SPAN&gt;+ &lt;SPAN style="color: #660e7a;"&gt;message&lt;/SPAN&gt;;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;SPAN style="font-style: italic;"&gt;showPrompt&lt;/SPAN&gt;(pMessage, &lt;SPAN style="color: #660e7a;"&gt;activity&lt;/SPAN&gt;);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; }&lt;SPAN style="color: #000080; font-weight: bold;"&gt;else if &lt;/SPAN&gt;(&lt;SPAN style="color: #660e7a;"&gt;message&lt;/SPAN&gt;.contains(&lt;SPAN style="color: #008000; font-weight: bold;"&gt;"Untrusted server certificate"&lt;/SPAN&gt;)) {&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #808080; font-style: italic;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #808080; font-style: italic;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #808080; font-style: italic;"&gt;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;pMessage = &lt;SPAN style="color: #008000; font-weight: bold;"&gt;"Security Error Connecting to Feature Service because of Web Application Firewall. Put in help desk ticket.: " &lt;/SPAN&gt;+ &lt;SPAN style="color: #660e7a;"&gt;message&lt;/SPAN&gt;;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;SPAN style="font-style: italic;"&gt;showPrompt&lt;/SPAN&gt;(pMessage, &lt;SPAN style="color: #660e7a;"&gt;activity&lt;/SPAN&gt;);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; }&lt;SPAN style="color: #000080; font-weight: bold;"&gt;else if &lt;/SPAN&gt;(&lt;SPAN style="color: #660e7a;"&gt;message&lt;/SPAN&gt;.contains(&lt;SPAN style="color: #008000; font-weight: bold;"&gt;"Not Found"&lt;/SPAN&gt;)) {&lt;/P&gt;&lt;P&gt; &lt;SPAN style="color: #808080; font-style: italic;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #808080; font-style: italic;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #808080; font-style: italic;"&gt;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;pMessage = &lt;SPAN style="color: #008000; font-weight: bold;"&gt;"Either Internal Feature Service or ArcGIS.com is down. Error details: " &lt;/SPAN&gt;+ &lt;SPAN style="color: #660e7a;"&gt;message&lt;/SPAN&gt;;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;SPAN style="font-style: italic;"&gt;showPrompt&lt;/SPAN&gt;(pMessage, &lt;SPAN style="color: #660e7a;"&gt;activity&lt;/SPAN&gt;);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; }&lt;SPAN style="color: #000080; font-weight: bold;"&gt;else if &lt;/SPAN&gt;(&lt;SPAN style="color: #660e7a;"&gt;message&lt;/SPAN&gt;.contains(&lt;SPAN style="color: #008000; font-weight: bold;"&gt;"current license level"&lt;/SPAN&gt;)) {&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;SPAN style="color: #808080; font-style: italic;"&gt;//S1ViewerActivity.downloadProgressBar.setVisibility(View.GONE);&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #808080; font-style: italic;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #808080; font-style: italic;"&gt;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;pMessage = &lt;SPAN style="color: #008000; font-weight: bold;"&gt;"Your credentials have expired. You must Log Off of S1 and Log back in. To do this go to Options menu and choose option to Log Off. When prompted type in your username and password."&lt;/SPAN&gt;;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;SPAN style="font-style: italic;"&gt;showPrompt&lt;/SPAN&gt;(pMessage, &lt;SPAN style="color: #660e7a;"&gt;activity&lt;/SPAN&gt;);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; }&lt;SPAN style="color: #000080; font-weight: bold;"&gt;else&lt;/SPAN&gt;{&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;SPAN style="color: #808080; font-style: italic;"&gt;//temp bandaid solution regarding sync issues&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #808080; font-style: italic;"&gt;&amp;nbsp; //if(message.contains("database file")) {&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #808080; font-style: italic;"&gt;&amp;nbsp; //pMessage = "Sync Upload Successful, but Download of other new features not possible due to Server Issues.";&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #808080; font-style: italic;"&gt;&amp;nbsp; //showPrompt(pMessage, activity);&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #808080; font-style: italic;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #808080; font-style: italic;"&gt;&amp;nbsp; //}else{&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #808080; font-style: italic;"&gt;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;Toast.&lt;SPAN style="font-style: italic;"&gt;makeText&lt;/SPAN&gt;(&lt;SPAN style="color: #660e7a;"&gt;activity&lt;/SPAN&gt;, &lt;SPAN style="color: #660e7a;"&gt;message&lt;/SPAN&gt;, Toast.&lt;SPAN style="color: #660e7a; font-weight: bold; font-style: italic;"&gt;LENGTH_LONG&lt;/SPAN&gt;).show();&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;SPAN style="color: #808080; font-style: italic;"&gt;//}&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #808080; font-style: italic;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #808080; font-style: italic;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #808080; font-style: italic;"&gt;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #808080; font-style: italic;"&gt;/* if (message.contains("current license level")) {&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #808080; font-style: italic;"&gt;&amp;nbsp; Toast.makeText(activity, "Your Login Credentials have expired.", Toast.LENGTH_LONG).show();&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #808080; font-style: italic;"&gt;&amp;nbsp; }*/&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #808080; font-style: italic;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #808080; font-style: italic;"&gt;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #000080; font-weight: bold;"&gt;if &lt;/SPAN&gt;(pMessage != &lt;SPAN style="color: #008000; font-weight: bold;"&gt;""&lt;/SPAN&gt;){&lt;/P&gt;&lt;P&gt;&amp;nbsp; S1ViewerActivity.&lt;SPAN style="font-style: italic;"&gt;appendLog&lt;/SPAN&gt;(pMessage);&lt;/P&gt;&lt;P&gt;&amp;nbsp; }&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;SPAN style="color: #808080; font-style: italic;"&gt;//S1ViewerActivity.downloadProgressBar.setVisibility(View.GONE);&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #808080; font-style: italic;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #808080; font-style: italic;"&gt;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;} &lt;SPAN style="color: #000080; font-weight: bold;"&gt;catch &lt;/SPAN&gt;(Exception e) {&lt;/P&gt;&lt;P&gt;&amp;nbsp; e.printStackTrace();&lt;/P&gt;&lt;P&gt;&amp;nbsp; }&lt;/P&gt;&lt;P&gt;&amp;nbsp; }&lt;/P&gt;&lt;P&gt;&amp;nbsp; });&lt;/P&gt;&lt;P&gt;&amp;nbsp; }&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;SPAN style="color: #000080; font-weight: bold;"&gt;static void &lt;/SPAN&gt;showPrompt(String message, Context activity ){&lt;/P&gt;&lt;P&gt;&amp;nbsp; DialogInterface.OnClickListener dialogClickListener = &lt;SPAN style="color: #000080; font-weight: bold;"&gt;new &lt;/SPAN&gt;DialogInterface.OnClickListener() {&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;SPAN style="color: #808000;"&gt;@Override&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #808000;"&gt;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #000080; font-weight: bold;"&gt;public void &lt;/SPAN&gt;onClick(DialogInterface dialog,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;SPAN style="color: #000080; font-weight: bold;"&gt;int &lt;/SPAN&gt;which) {&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;SPAN style="color: #000080; font-weight: bold;"&gt;switch &lt;/SPAN&gt;(which) {&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;SPAN style="color: #000080; font-weight: bold;"&gt;case &lt;/SPAN&gt;DialogInterface.&lt;SPAN style="color: #660e7a; font-weight: bold; font-style: italic;"&gt;BUTTON_POSITIVE&lt;/SPAN&gt;:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;SPAN style="color: #000080; font-weight: bold;"&gt;break&lt;/SPAN&gt;;&lt;/P&gt;&lt;P&gt;&amp;nbsp; }&lt;/P&gt;&lt;P&gt;&amp;nbsp; }&lt;/P&gt;&lt;P&gt;&amp;nbsp; };&lt;/P&gt;&lt;P&gt;&amp;nbsp; AlertDialog.Builder builder = &lt;SPAN style="color: #000080; font-weight: bold;"&gt;new &lt;/SPAN&gt;AlertDialog.Builder(activity);&lt;/P&gt;&lt;P&gt;&amp;nbsp; builder.setMessage(message).setPositiveButton(&lt;SPAN style="color: #008000; font-weight: bold;"&gt;"OK"&lt;/SPAN&gt;,dialogClickListener).show();&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; }&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Jun 2016 23:46:42 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/bidirectional-sync-fails-after-device-goes-to/m-p/579115#M3930</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2016-06-08T23:46:42Z</dc:date>
    </item>
    <item>
      <title>Re: Bidirectional Sync Fails after device goes to sleep</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/bidirectional-sync-fails-after-device-goes-to/m-p/579116#M3931</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I believe a good solution to this would be to create a background service and place the sync call in there.&amp;nbsp; This is most likely occurring due to the activity life-cycle of an app.&amp;nbsp; When the app goes to sleep or the screen is turned off / semi closed, the activity is destroyed and with it all running processes in that activity.&amp;nbsp; The background service will ensure that the sync lives beyond the lifecycle of the app.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is a quick example from Stack Overflow:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://stackoverflow.com/questions/21987414/run-upload-process-in-background-even-when-phone-is-asleep" title="http://stackoverflow.com/questions/21987414/run-upload-process-in-background-even-when-phone-is-asleep"&gt;android - Run upload process in background even when phone is asleep - Stack Overflow&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;EDIT:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;This may be the best resource here:&lt;/P&gt;&lt;P&gt;&lt;A href="https://developer.android.com/training/run-background-service/create-service.html" title="https://developer.android.com/training/run-background-service/create-service.html"&gt;https://developer.android.com/training/run-background-service/create-service.html&lt;/A&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;EDIT2:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;You may also want to consider looking at chapter 26 in the Big Nerd Ranches Android Programming Guide.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Jun 2016 17:56:51 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/bidirectional-sync-fails-after-device-goes-to/m-p/579116#M3931</guid>
      <dc:creator>AlexanderNohe1</dc:creator>
      <dc:date>2016-06-09T17:56:51Z</dc:date>
    </item>
    <item>
      <title>Re: Bidirectional Sync Fails after device goes to sleep</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/bidirectional-sync-fails-after-device-goes-to/m-p/579117#M3932</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey Alex, That does sound like a good concept, especially if syncs take awhile.&amp;nbsp; I realize I probably did not explain the circumstances very well.&amp;nbsp; The behavior we see happens if the app goes to sleep or the app goes into the background.&amp;nbsp; At the point in time when the device goes to sleep or into the background we do not have a sync process running.&amp;nbsp; Basically once the activity is more or less killed by the system all syncs you try to do after that point in time fail.&amp;nbsp; It seems like this is happening because connections to the Geodatabase are not being closed as they should properly, I am guessing because in the case of the Android system taking over the onDestroy event is no longer called.&amp;nbsp; Thus I am guessing that there is still a connection hanging in the main activity map view that is causing a conflict with sync when it is trying to insert the new records into the Geodatabase. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Jun 2016 19:58:23 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/bidirectional-sync-fails-after-device-goes-to/m-p/579117#M3932</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2016-06-09T19:58:23Z</dc:date>
    </item>
    <item>
      <title>Re: Bidirectional Sync Fails after device goes to sleep</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/bidirectional-sync-fails-after-device-goes-to/m-p/579118#M3933</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;IMG alt="activity_lifecycle.png" class="image-1 jive-image" src="https://developer.android.com/images/activity_lifecycle.png" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;Graphic came from:&lt;/P&gt;&lt;P&gt;&lt;A href="https://developer.android.com/reference/android/app/Activity.html" title="https://developer.android.com/reference/android/app/Activity.html"&gt;Activity | Android Developers&lt;/A&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What I would do is that when onPause() is called in your activity, run the Dispose() command which will close your geodatabase.&amp;nbsp; Then when onResume() is called, reinstantiate your geodatabase.&amp;nbsp; The onPause() may be a better location to dispose of your geodatabase rather than onDestroy since onDestroy will be called when the activity is completely closed, not just placed into the background.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://developers.arcgis.com/android/api-reference/reference/com/esri/core/geodatabase/Geodatabase.html#dispose()" title="https://developers.arcgis.com/android/api-reference/reference/com/esri/core/geodatabase/Geodatabase.html#dispose()"&gt;Geodatabase | ArcGIS Android 10.2.8 API&lt;/A&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope this helps!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Jun 2016 12:35:39 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/bidirectional-sync-fails-after-device-goes-to/m-p/579118#M3933</guid>
      <dc:creator>AlexanderNohe1</dc:creator>
      <dc:date>2016-06-13T12:35:39Z</dc:date>
    </item>
    <item>
      <title>Re: Bidirectional Sync Fails after device goes to sleep</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/bidirectional-sync-fails-after-device-goes-to/m-p/579119#M3934</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Alex, Thank you for the advice.&amp;nbsp; I am now pretty much at a loss for what is happening.&amp;nbsp; I now have the code dispose of the localGDB prior to sync.&amp;nbsp; Additionally I close the Map Activity and Recycle the mapview.&amp;nbsp; None of this seems to have any impact.&amp;nbsp; The upload of new features does work, but insert of new features fails with error &lt;SPAN style="color: #3d3d3d; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;"File opened that is not a database file"&lt;/SPAN&gt;.&amp;nbsp; Very strange.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Jun 2016 22:34:36 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/bidirectional-sync-fails-after-device-goes-to/m-p/579119#M3934</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2016-06-13T22:34:36Z</dc:date>
    </item>
    <item>
      <title>Re: Bidirectional Sync Fails after device goes to sleep</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/bidirectional-sync-fails-after-device-goes-to/m-p/579120#M3935</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What is your code snippet for the opening the geodatabase? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you use the Android Device Monitor to confirm that your path to the geodatabase is correct?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is the insert of new features to the existing geodatabase or is it coming from the server attempting to sync?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Jun 2016 11:48:18 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/bidirectional-sync-fails-after-device-goes-to/m-p/579120#M3935</guid>
      <dc:creator>AlexanderNohe1</dc:creator>
      <dc:date>2016-06-14T11:48:18Z</dc:date>
    </item>
    <item>
      <title>Re: Bidirectional Sync Fails after device goes to sleep</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/bidirectional-sync-fails-after-device-goes-to/m-p/579121#M3936</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Alex,&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;1)&amp;nbsp; What is your code snippet for the opening the geodatabase? &lt;STRONG&gt; &lt;EM&gt;We are adding in Polygon, Polyline and then Points because the SDK has no ability to reorder layers after they are added.&lt;/EM&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #660e7a; font-style: italic;"&gt;localGDB &lt;/SPAN&gt;= &lt;SPAN style="color: #000080; font-weight: bold;"&gt;new &lt;/SPAN&gt;Geodatabase(&lt;SPAN style="color: #660e7a; font-weight: bold;"&gt;priorGDBString&lt;/SPAN&gt;);&lt;/P&gt;&lt;P&gt;FeatureInformation.&lt;SPAN style="font-style: italic;"&gt;ReCreateInstance&lt;/SPAN&gt;();&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000080; font-weight: bold;"&gt;for &lt;/SPAN&gt;(GeodatabaseFeatureTable gdbFeatureTable : &lt;SPAN style="color: #660e7a;"&gt;localGDB&lt;/SPAN&gt;.getGeodatabaseTables()) {&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;SPAN style="color: #000080; font-weight: bold;"&gt;if &lt;/SPAN&gt;(gdbFeatureTable.hasGeometry()) {&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;SPAN style="color: #000080; font-weight: bold;"&gt;if&lt;/SPAN&gt;(gdbFeatureTable.getGeometryType().equals(Geometry.Type.&lt;SPAN style="color: #660e7a; font-weight: bold; font-style: italic;"&gt;POLYGON&lt;/SPAN&gt;)) {&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;SPAN style="color: #660e7a; font-style: italic;"&gt;mMapView&lt;/SPAN&gt;.addLayer(&lt;SPAN style="color: #000080; font-weight: bold;"&gt;new &lt;/SPAN&gt;FeatureLayer(gdbFeatureTable));&lt;/P&gt;&lt;P&gt;&amp;nbsp; }&lt;/P&gt;&lt;P&gt;&amp;nbsp; }&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000080; font-weight: bold;"&gt;for &lt;/SPAN&gt;(GeodatabaseFeatureTable gdbFeatureTable : &lt;SPAN style="color: #660e7a; font-style: italic;"&gt;localGDB&lt;/SPAN&gt;.getGeodatabaseTables()) {&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;SPAN style="color: #000080; font-weight: bold;"&gt;if &lt;/SPAN&gt;(gdbFeatureTable.hasGeometry()) {&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;SPAN style="color: #000080; font-weight: bold;"&gt;if&lt;/SPAN&gt;(gdbFeatureTable.getGeometryType().equals(Geometry.Type.&lt;SPAN style="color: #660e7a; font-weight: bold; font-style: italic;"&gt;POLYLINE&lt;/SPAN&gt;)) {&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;SPAN style="color: #660e7a; font-style: italic;"&gt;mMapView&lt;/SPAN&gt;.addLayer(&lt;SPAN style="color: #000080; font-weight: bold;"&gt;new &lt;/SPAN&gt;FeatureLayer(gdbFeatureTable));&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;SPAN style="color: #808080; font-style: italic;"&gt;//gdbLayerStatus = "Added";&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #808080; font-style: italic;"&gt;&amp;nbsp; //FeatureLayer x = new FeatureLayer(gdbFeatureTable);&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #808080; font-style: italic;"&gt;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;}&lt;/P&gt;&lt;P&gt;&amp;nbsp; }&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000080; font-weight: bold;"&gt;for &lt;/SPAN&gt;(GeodatabaseFeatureTable gdbFeatureTable : &lt;SPAN style="color: #660e7a; font-style: italic;"&gt;localGDB&lt;/SPAN&gt;.getGeodatabaseTables()) {&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;SPAN style="color: #000080; font-weight: bold;"&gt;if &lt;/SPAN&gt;(gdbFeatureTable.hasGeometry()) {&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;SPAN style="color: #000080; font-weight: bold;"&gt;if&lt;/SPAN&gt;(gdbFeatureTable.getGeometryType().equals(Geometry.Type.&lt;SPAN style="color: #660e7a; font-weight: bold; font-style: italic;"&gt;POINT&lt;/SPAN&gt;)) {&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;SPAN style="color: #660e7a; font-style: italic;"&gt;mMapView&lt;/SPAN&gt;.addLayer(&lt;SPAN style="color: #000080; font-weight: bold;"&gt;new &lt;/SPAN&gt;FeatureLayer(gdbFeatureTable));&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;SPAN style="color: #808080; font-style: italic;"&gt;//gdbLayerStatus = "Added";&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #808080; font-style: italic;"&gt;&amp;nbsp; //FeatureLayer x = new FeatureLayer(gdbFeatureTable);&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #808080; font-style: italic;"&gt;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;}&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;&lt;SPAN style="color: #3d3d3d; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;2)&amp;nbsp; Can you use the Android Device Monitor to confirm that your path to the geodatabase is correct?&amp;nbsp; &lt;STRONG&gt;Yes in logcat path is always showing up correctly.&amp;nbsp; &lt;/STRONG&gt;Even when stepping into ESRI Runtime SDK GeodatabaseSync Task all paths and parameters look correct.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;3)&amp;nbsp; &lt;SPAN style="color: #3d3d3d; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;Is the insert of new features to the existing geodatabase or is it coming from the server attempting to sync?&amp;nbsp; &lt;STRONG&gt;When using an internal feature service I get the same behavior and I see no errors on the ArcGIS Service side.&amp;nbsp; New features from my device always upload correctly.&amp;nbsp; It is the insert of new features collected by others that do not appear to insert properly.&amp;nbsp; There are a bunch of files in the GDB directory generated by the SDK.&amp;nbsp; There appears to be a temporary Geodatabase in the folder that I never see if the process is successful.&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;&lt;STRONG&gt;&lt;IMG class="image-1 jive-image" height="371" src="https://community.esri.com/legacyfs/online/207736_pastedImage_4.png" style="height: 371px; width: 771.879px;" width="772" /&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Jun 2016 17:47:51 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/bidirectional-sync-fails-after-device-goes-to/m-p/579121#M3936</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2016-06-14T17:47:51Z</dc:date>
    </item>
    <item>
      <title>Re: Bidirectional Sync Fails after device goes to sleep</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/bidirectional-sync-fails-after-device-goes-to/m-p/579122#M3937</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Before I address your other concerns in this post, one last thing I would like to confirm.&amp;nbsp; Are your users adding features outside of the initial extent of the features that already exist within your geodatabase?&amp;nbsp; That is, if I have features in Maine, are other users adding points in Washington and they are not getting synced to the geodatabase?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Jun 2016 18:46:21 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/bidirectional-sync-fails-after-device-goes-to/m-p/579122#M3937</guid>
      <dc:creator>AlexanderNohe1</dc:creator>
      <dc:date>2016-06-14T18:46:21Z</dc:date>
    </item>
    <item>
      <title>Re: Bidirectional Sync Fails after device goes to sleep</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/bidirectional-sync-fails-after-device-goes-to/m-p/579123#M3938</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI Alex, The features are all in the same extent.&amp;nbsp; I have an extent set as Portland, Oregon metro area on both devices.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Jun 2016 18:54:38 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/bidirectional-sync-fails-after-device-goes-to/m-p/579123#M3938</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2016-06-14T18:54:38Z</dc:date>
    </item>
    <item>
      <title>Re: Bidirectional Sync Fails after device goes to sleep</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/bidirectional-sync-fails-after-device-goes-to/m-p/579124#M3939</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;As far as reordering layers goes, I did it this way.&amp;nbsp; I keep layer[0] in this position since it is the basemap:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;SPAN style="color: #cc7832;"&gt;public class &lt;/SPAN&gt;MainActivity &lt;SPAN style="color: #cc7832;"&gt;extends &lt;/SPAN&gt;AppCompatActivity {

&amp;nbsp; MapView &lt;SPAN style="color: #9876aa;"&gt;mapView&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;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #808080;"&gt;&lt;SPAN&gt;// &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.esri.com/external-link.jspa?url=https%3A%2F%2Fdevelopers.arcgis.com%2Fandroid%2Fguide%2Fmaps-and-layers.htm%23ESRI_SECTION1_3CE2C5FDDFA443A78D92843C0DEE2843" target="_blank"&gt;https://developers.arcgis.com/android/guide/maps-and-layers.htm#ESRI_SECTION1_3CE2C5FDDFA443A78D92843C0DEE2843&lt;/A&gt;
&lt;/SPAN&gt;&lt;SPAN style="color: #808080;"&gt;
&lt;/SPAN&gt;&lt;SPAN style="color: #808080;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #bbb529;"&gt;@Override &lt;/SPAN&gt;&lt;SPAN style="color: #cc7832;"&gt;protected void &lt;/SPAN&gt;&lt;SPAN style="color: #ffc66d;"&gt;onCreate&lt;/SPAN&gt;(Bundle savedInstanceState) {
&amp;nbsp;&amp;nbsp; &lt;SPAN style="color: #cc7832;"&gt;super&lt;/SPAN&gt;.onCreate(savedInstanceState)&lt;SPAN style="color: #cc7832;"&gt;;
&lt;/SPAN&gt;&lt;SPAN style="color: #cc7832;"&gt;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;setContentView(R.layout.&lt;SPAN style="color: #9876aa; font-style: italic;"&gt;activity_main&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;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #9876aa;"&gt;mapView &lt;/SPAN&gt;= (MapView) findViewById(R.id.&lt;SPAN style="color: #9876aa; font-style: italic;"&gt;map&lt;/SPAN&gt;)&lt;SPAN style="color: #cc7832;"&gt;;
&lt;/SPAN&gt;&lt;SPAN style="color: #cc7832;"&gt;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;Layer[] x = &lt;SPAN style="color: #cc7832;"&gt;new &lt;/SPAN&gt;Layer[] { &lt;SPAN style="color: #cc7832;"&gt;new &lt;/SPAN&gt;ArcGISFeatureLayer(&lt;SPAN style="color: #6a8759;"&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.esri.com/external-link.jspa?url=https%3A%2F%2Fsampleserver6.arcgisonline.com%2Farcgis%2Frest%2Fservices%2FWildfire%2FFeatureServer%2F0" target="_blank"&gt;https://sampleserver6.arcgisonline.com/arcgis/rest/services/Wildfire/FeatureServer/0&lt;/A&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #cc7832;"&gt;,
&lt;/SPAN&gt;&lt;SPAN style="color: #cc7832;"&gt;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;ArcGISFeatureLayer.MODE.&lt;SPAN style="color: #9876aa; font-style: italic;"&gt;ONDEMAND&lt;/SPAN&gt;)&lt;SPAN style="color: #cc7832;"&gt;,
&lt;/SPAN&gt;&lt;SPAN style="color: #cc7832;"&gt;&amp;nbsp; new &lt;/SPAN&gt;ArcGISFeatureLayer(&lt;SPAN style="color: #6a8759;"&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.esri.com/external-link.jspa?url=https%3A%2F%2Fsampleserver6.arcgisonline.com%2Farcgis%2Frest%2Fservices%2FWildfire%2FFeatureServer%2F1" target="_blank"&gt;https://sampleserver6.arcgisonline.com/arcgis/rest/services/Wildfire/FeatureServer/1&lt;/A&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #cc7832;"&gt;,
&lt;/SPAN&gt;&lt;SPAN style="color: #cc7832;"&gt;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;ArcGISFeatureLayer.MODE.&lt;SPAN style="color: #9876aa; font-style: italic;"&gt;ONDEMAND&lt;/SPAN&gt;)&lt;SPAN style="color: #cc7832;"&gt;,
&lt;/SPAN&gt;&lt;SPAN style="color: #cc7832;"&gt;&amp;nbsp; new &lt;/SPAN&gt;ArcGISFeatureLayer(&lt;SPAN style="color: #6a8759;"&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.esri.com/external-link.jspa?url=https%3A%2F%2Fsampleserver6.arcgisonline.com%2Farcgis%2Frest%2Fservices%2FWildfire%2FFeatureServer%2F2" target="_blank"&gt;https://sampleserver6.arcgisonline.com/arcgis/rest/services/Wildfire/FeatureServer/2&lt;/A&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #cc7832;"&gt;,
&lt;/SPAN&gt;&lt;SPAN style="color: #cc7832;"&gt;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;ArcGISFeatureLayer.MODE.&lt;SPAN style="color: #9876aa; font-style: italic;"&gt;ONDEMAND&lt;/SPAN&gt;)}&lt;SPAN style="color: #cc7832;"&gt;;
&lt;/SPAN&gt;&lt;SPAN style="color: #cc7832;"&gt;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #9876aa;"&gt;mapView&lt;/SPAN&gt;.addLayers(x)&lt;SPAN style="color: #cc7832;"&gt;;
&lt;/SPAN&gt;&lt;SPAN style="color: #cc7832;"&gt;
&lt;/SPAN&gt;&lt;SPAN style="color: #cc7832;"&gt;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;Button button = (Button) findViewById(R.id.&lt;SPAN style="color: #9876aa; font-style: italic;"&gt;x&lt;/SPAN&gt;)&lt;SPAN style="color: #cc7832;"&gt;;
&lt;/SPAN&gt;&lt;SPAN style="color: #cc7832;"&gt;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;button.setOnClickListener(&lt;SPAN style="color: #cc7832;"&gt;new &lt;/SPAN&gt;View.OnClickListener() {
&amp;nbsp;&amp;nbsp; &lt;SPAN style="color: #bbb529;"&gt;@Override &lt;/SPAN&gt;&lt;SPAN style="color: #cc7832;"&gt;public void &lt;/SPAN&gt;&lt;SPAN style="color: #ffc66d;"&gt;onClick&lt;/SPAN&gt;(View v) {
&amp;nbsp;&amp;nbsp; &lt;SPAN style="color: #cc7832;"&gt;for &lt;/SPAN&gt;(Layer layer : &lt;SPAN style="color: #9876aa;"&gt;mapView&lt;/SPAN&gt;.getLayers()) {
&amp;nbsp; Log.&lt;SPAN style="font-style: italic;"&gt;e&lt;/SPAN&gt;(&lt;SPAN style="color: #6a8759;"&gt;"NOHE"&lt;/SPAN&gt;&lt;SPAN style="color: #cc7832;"&gt;, &lt;/SPAN&gt;layer.getName().toString())&lt;SPAN style="color: #cc7832;"&gt;;
&lt;/SPAN&gt;&lt;SPAN style="color: #cc7832;"&gt;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;}
&amp;nbsp; Layer[] z = &lt;SPAN style="color: #9876aa;"&gt;mapView&lt;/SPAN&gt;.getLayers()&lt;SPAN style="color: #cc7832;"&gt;;
&lt;/SPAN&gt;&lt;SPAN style="color: #cc7832;"&gt;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #9876aa;"&gt;mapView&lt;/SPAN&gt;.removeAll()&lt;SPAN style="color: #cc7832;"&gt;;
&lt;/SPAN&gt;&lt;SPAN style="color: #cc7832;"&gt;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;Layer[] q = &lt;SPAN style="color: #cc7832;"&gt;new &lt;/SPAN&gt;Layer[] {z[&lt;SPAN style="color: #6897bb;"&gt;0&lt;/SPAN&gt;]&lt;SPAN style="color: #cc7832;"&gt;, &lt;/SPAN&gt;z[&lt;SPAN style="color: #6897bb;"&gt;3&lt;/SPAN&gt;]&lt;SPAN style="color: #cc7832;"&gt;, &lt;/SPAN&gt;z[&lt;SPAN style="color: #6897bb;"&gt;2&lt;/SPAN&gt;]&lt;SPAN style="color: #cc7832;"&gt;, &lt;/SPAN&gt;z[&lt;SPAN style="color: #6897bb;"&gt;1&lt;/SPAN&gt;]}&lt;SPAN style="color: #cc7832;"&gt;;
&lt;/SPAN&gt;&lt;SPAN style="color: #cc7832;"&gt;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #9876aa;"&gt;mapView&lt;/SPAN&gt;.addLayers(q)&lt;SPAN style="color: #cc7832;"&gt;;
&lt;/SPAN&gt;&lt;SPAN style="color: #cc7832;"&gt;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #808080;"&gt;//mapView.refreshDrawableState();
&lt;/SPAN&gt;&lt;SPAN style="color: #808080;"&gt;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;}
&amp;nbsp; })&lt;SPAN style="color: #cc7832;"&gt;;
&lt;/SPAN&gt;&lt;SPAN style="color: #cc7832;"&gt;&amp;nbsp; &lt;/SPAN&gt;}

}&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As far as your other concerns, can you show me with a screenshot where the new points are getting drawn in comparison to your older points?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 00:53:55 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/bidirectional-sync-fails-after-device-goes-to/m-p/579124#M3939</guid>
      <dc:creator>AlexanderNohe1</dc:creator>
      <dc:date>2021-12-12T00:53:55Z</dc:date>
    </item>
    <item>
      <title>Re: Bidirectional Sync Fails after device goes to sleep</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/bidirectional-sync-fails-after-device-goes-to/m-p/579125#M3940</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Alex, The issue is that the features from other users do not even get added to the local GDB on device after sync.&amp;nbsp; Features upload and you can see them on AGOL, but no new features from other users are downloaded back to device (and this is when they are collected in the same extent).&amp;nbsp; At the point when it tries to insert I get an error saying "File is not a database file".&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Jun 2016 19:38:20 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/bidirectional-sync-fails-after-device-goes-to/m-p/579125#M3940</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2016-06-14T19:38:20Z</dc:date>
    </item>
    <item>
      <title>Re: Bidirectional Sync Fails after device goes to sleep</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/bidirectional-sync-fails-after-device-goes-to/m-p/579126#M3941</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think I must be confused on what processes you are doing here.&amp;nbsp; Are you doing a sync and the device goes to sleep or is the device awake while you sync?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Jun 2016 20:13:17 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/bidirectional-sync-fails-after-device-goes-to/m-p/579126#M3941</guid>
      <dc:creator>AlexanderNohe1</dc:creator>
      <dc:date>2016-06-14T20:13:17Z</dc:date>
    </item>
    <item>
      <title>Re: Bidirectional Sync Fails after device goes to sleep</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/bidirectional-sync-fails-after-device-goes-to/m-p/579127#M3942</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Alex, the device is always awake when I sync.&amp;nbsp; Here is the behavior.&lt;/P&gt;&lt;P&gt;1.&amp;nbsp; If I download a GDB and right away do a sync (device never goes to sleep) I am always successful&amp;nbsp; If there are other features in the same extent from other users in this situation they come in correctly.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2.&amp;nbsp; If I download the GDB and then allow my device to go to sleep, any sync I do after this point in time will upload and be visible on AGOL, but any new data from new users will not insert properly (I see no errors on the ArcGIS Server end).&amp;nbsp; In this case I get the error "File is not a database file" and I do not see any new features from other users.&amp;nbsp; In this case I was not actually syncing when when the device went to sleep.&amp;nbsp; It is just the act of the device going to sleep or application running in the background that causes the issue. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Jun 2016 21:16:02 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/bidirectional-sync-fails-after-device-goes-to/m-p/579127#M3942</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2016-06-14T21:16:02Z</dc:date>
    </item>
    <item>
      <title>Re: Bidirectional Sync Fails after device goes to sleep</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/bidirectional-sync-fails-after-device-goes-to/m-p/579128#M3943</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;A href="https://community.esri.com/migrated-users/6510"&gt;Aaron Dick&lt;/A&gt;​&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Since I cannot reproduce in-house, can you try doing this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you log the path to the geodatabase when you sync.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This would look something like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Log.e("FORESRI",S1ViewerActivity.localGDB.getPath());&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This will show us the path the the GDB that you are syncing to has.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Does this show the correct path that you expect?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 12:34:28 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/bidirectional-sync-fails-after-device-goes-to/m-p/579128#M3943</guid>
      <dc:creator>AlexanderNohe1</dc:creator>
      <dc:date>2016-06-15T12:34:28Z</dc:date>
    </item>
    <item>
      <title>Re: Bidirectional Sync Fails after device goes to sleep</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/bidirectional-sync-fails-after-device-goes-to/m-p/579129#M3944</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Alex, I am noticing that when I use your simple example that I have no&lt;/P&gt;&lt;P&gt;problems with our application...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;http://services.arcgis.com/Wl7Y1m92PbjtJs5n/arcgis/rest/services/SyncData/FeatureServer&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I went ahead and posted a more robust sample for you guys to test out.  It&lt;/P&gt;&lt;P&gt;appears to not sync properly with the offlineeditor although how on earth&lt;/P&gt;&lt;P&gt;do you enter in attributes with the offlineeditor?  That might be why it&lt;/P&gt;&lt;P&gt;does not work.  Anyways try out this service and see if you can get it to&lt;/P&gt;&lt;P&gt;sync.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;https://services3.arcgis.com/cLHDcAMZcbfKAqyY/arcgis/rest/services/R6_RO_Park_Features/FeatureServer&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Aaron Dick&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Service First Mobile GIS Lead&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Oregon Washington BLM&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;USFS Region 6 Data Resources Management&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Tel: 503.808.6601&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cell: 503.382.7355&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Mobile GIS and GPS Info:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;https://partnerteamspace.blm.doi.net/sites-or/orwamobile/default.aspx (BLM&lt;/P&gt;&lt;P&gt;only)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;https://ems-team.usda.gov/sites/fs-r06-s1gis/mobile-gis/default.aspx (USFS&lt;/P&gt;&lt;P&gt;only)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jun 2016 18:33:08 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/bidirectional-sync-fails-after-device-goes-to/m-p/579129#M3944</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2016-06-16T18:33:08Z</dc:date>
    </item>
    <item>
      <title>Re: Bidirectional Sync Fails after device goes to sleep</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/bidirectional-sync-fails-after-device-goes-to/m-p/579130#M3945</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey &lt;A href="https://community.esri.com/migrated-users/6510"&gt;Aaron Dick&lt;/A&gt;​&lt;/P&gt;&lt;P&gt;Just wanted to confirm.&amp;nbsp; You wanted me to test out:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://services3.arcgis.com/cLHDcAMZcbfKAqyY/ArcGIS/rest/services/R6_RO_Park_Features/FeatureServer" title="https://services3.arcgis.com/cLHDcAMZcbfKAqyY/ArcGIS/rest/services/R6_RO_Park_Features/FeatureServer"&gt;https://services3.arcgis.com/cLHDcAMZcbfKAqyY/ArcGIS/rest/services/R6_RO_Park_Features/FeatureServer&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the ArcGIS Runtime Sample? &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jun 2016 19:00:29 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/bidirectional-sync-fails-after-device-goes-to/m-p/579130#M3945</guid>
      <dc:creator>AlexanderNohe1</dc:creator>
      <dc:date>2016-06-16T19:00:29Z</dc:date>
    </item>
    <item>
      <title>Re: Bidirectional Sync Fails after device goes to sleep</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/bidirectional-sync-fails-after-device-goes-to/m-p/579131#M3946</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes try that out with the runtime sample. It is an exact copy of what we&lt;/P&gt;&lt;P&gt;had in our internal organization.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Aaron Dick&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Service First Mobile GIS Lead&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Oregon Washington BLM&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;USFS Region 6 Data Resources Management&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Tel: 503.808.6601&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cell: 503.382.7355&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Mobile GIS and GPS Info:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;https://partnerteamspace.blm.doi.net/sites-or/orwamobile/default.aspx (BLM&lt;/P&gt;&lt;P&gt;only)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;https://ems-team.usda.gov/sites/fs-r06-s1gis/mobile-gis/default.aspx (USFS&lt;/P&gt;&lt;P&gt;only)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jun 2016 19:03:44 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/bidirectional-sync-fails-after-device-goes-to/m-p/579131#M3946</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2016-06-16T19:03:44Z</dc:date>
    </item>
    <item>
      <title>Re: Bidirectional Sync Fails after device goes to sleep</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/bidirectional-sync-fails-after-device-goes-to/m-p/579132#M3947</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I cannot reproduce with your service and the runtime sample.&amp;nbsp; I was adding and deleting points both online and locally while opening and closing the app.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jun 2016 19:31:13 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/bidirectional-sync-fails-after-device-goes-to/m-p/579132#M3947</guid>
      <dc:creator>AlexanderNohe1</dc:creator>
      <dc:date>2016-06-16T19:31:13Z</dc:date>
    </item>
    <item>
      <title>Re: Bidirectional Sync Fails after device goes to sleep</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/bidirectional-sync-fails-after-device-goes-to/m-p/579133#M3948</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Alex,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*I have been able to re-create the issue using the Offline Editor so am&lt;/P&gt;&lt;P&gt;certain the problem is not specific to our code.*  Note that I did have to&lt;/P&gt;&lt;P&gt;add UserCredentials in several locations in the OfflineEditor sample to&lt;/P&gt;&lt;P&gt;make it work within an organization.  Here is how I am able to trigger the&lt;/P&gt;&lt;P&gt;problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1)  I setup a feature service and add it to my trial test organization.&lt;/P&gt;&lt;P&gt;2)* I share the feature service only in the organization to a group I am a&lt;/P&gt;&lt;P&gt;member of.  This is very critical.  What I am finding is that the error&lt;/P&gt;&lt;P&gt;never happens when a feature service is shared with everyone.*&lt;/P&gt;&lt;P&gt;3) I download the feature service using the Offline Editor application on&lt;/P&gt;&lt;P&gt;my phone.  Samsung S5 running Android L.&lt;/P&gt;&lt;P&gt;4)  I create a feature on device and in AGOL.  I sync.  This sync is&lt;/P&gt;&lt;P&gt;successful.&lt;/P&gt;&lt;P&gt;5.  I Run the application from Android Studio or use Task Manager on the&lt;/P&gt;&lt;P&gt;device to force close the application (this causes the same behavior as&lt;/P&gt;&lt;P&gt;device going to sleep but much quicker).&lt;/P&gt;&lt;P&gt;6.  I reopen Offline Editor either manually or Android Studio Run.  I now&lt;/P&gt;&lt;P&gt;collect a feature on the device and on AGOL in the same extent.  Now when I&lt;/P&gt;&lt;P&gt;sync I get the error "File is not a dabatase file".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please try this and see if you can replicate.  Again &lt;STRONG&gt;not&lt;/STRONG&gt; sharing to&lt;/P&gt;&lt;P&gt;everyone appears to be the critical thing here.  I am able to re-create&lt;/P&gt;&lt;P&gt;this on many interations when I follow the steps above.  I am able to&lt;/P&gt;&lt;P&gt;recreate this across many different feature services.  I even took your&lt;/P&gt;&lt;P&gt;points feature service, exported to gdb and then published that to my test&lt;/P&gt;&lt;P&gt;organization.  Same behavior.  Works when published to everyone, errors out&lt;/P&gt;&lt;P&gt;when following steps above and sharing only to a group in the organization.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Aaron Dick&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Service First Mobile GIS Lead&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Oregon Washington BLM&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;USFS Region 6 Data Resources Management&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Tel: 503.808.6601&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cell: 503.382.7355&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Mobile GIS and GPS Info:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;https://partnerteamspace.blm.doi.net/sites-or/orwamobile/default.aspx (BLM&lt;/P&gt;&lt;P&gt;only)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;https://ems-team.usda.gov/sites/fs-r06-s1gis/mobile-gis/default.aspx (USFS&lt;/P&gt;&lt;P&gt;only)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Jun 2016 14:51:50 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/bidirectional-sync-fails-after-device-goes-to/m-p/579133#M3948</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2016-06-17T14:51:50Z</dc:date>
    </item>
    <item>
      <title>Re: Bidirectional Sync Fails after device goes to sleep</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/bidirectional-sync-fails-after-device-goes-to/m-p/579134#M3949</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I see what you are doing.&amp;nbsp; I am going to work with my colleagues on addressing this.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 18 Jun 2016 16:28:30 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/bidirectional-sync-fails-after-device-goes-to/m-p/579134#M3949</guid>
      <dc:creator>AlexanderNohe1</dc:creator>
      <dc:date>2016-06-18T16:28:30Z</dc:date>
    </item>
  </channel>
</rss>

