<?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>Question Re: Auto synchronization in Technology Q&amp;A</title>
    <link>https://community.sap.com/t5/technology-q-a/auto-synchronization/qaa-p/13824428#M4855271</link>
    <description>&lt;P&gt;In addition to Graham's valid answer, if you do want to do scheduled synchronizations (for example to save the performance drain of doing synchronizations after many updates in a short time interval) there are several options.  One thing I do not recommend is doing a potentially long-running operation like synchronization on the UI thread (such as a button click).  A couple of options are: (1) you could use java.util.Timer to run scheduled synchronizations on a thread.  (2) you could use android.os.AsyncTask to run synchronizations on a background thread.&lt;/P&gt;</description>
    <pubDate>Thu, 12 Apr 2012 11:38:41 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2012-04-12T11:38:41Z</dc:date>
    <item>
      <title>Auto synchronization</title>
      <link>https://community.sap.com/t5/technology-q-a/auto-synchronization/qaq-p/13824426</link>
      <description>&lt;P&gt;Hello, &lt;BR /&gt;
My android application has a working mobilink synchronization, but is started only with a button click. I have to make my app synchronize in a period of time and I wonder what is the best approach to do this? Maybe a service with a running timer that calls the sync or it is better to try push notification.&lt;/P&gt;</description>
      <pubDate>Thu, 05 Apr 2012 11:54:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/auto-synchronization/qaq-p/13824426</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-04-05T11:54:31Z</dc:date>
    </item>
    <item>
      <title>Re: Auto synchronization</title>
      <link>https://community.sap.com/t5/technology-q-a/auto-synchronization/qaa-p/13824427#M4855270</link>
      <description>&lt;P&gt;MobiLink has several options for &lt;A href="http://dcx.sybase.com/index.html#1201/en/mlsisync/mlsisync12.html"&gt;Server Initiated Synchronization (SIS)&lt;/A&gt; and for Android you can also &lt;A href="http://iablog.sybase.com/mobiledatabase/2011/08/a-sql-anywhere-push-sample-for-android/"&gt;use Google C2DM to push synchronizations&lt;/A&gt;.&lt;/P&gt;
&lt;P&gt;Unlike the SQL Anywhere client for MobiLink (dbmlsync), UltraLite has no &lt;A href="http://dcx.sybase.com/index.html#1201/en/mlclient/scheduling-customizing-ml-asa.html"&gt;built-in feature for scheduled synchronization&lt;/A&gt; but it does have &lt;A href="http://dcx.sybase.com/index.html#1201/en/uladmin/fo-databases-s-5108100.html"&gt;support for performing background synchronization&lt;/A&gt;.&lt;/P&gt;
&lt;P&gt;So changes on the consolidated database could start synchronization via SIS or C2DM, and you could have your Android application initiate a synchronization for changes made by it. Then there would be no need for scheduled synchronizations.&lt;/P&gt;</description>
      <pubDate>Thu, 05 Apr 2012 12:43:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/auto-synchronization/qaa-p/13824427#M4855270</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-04-05T12:43:33Z</dc:date>
    </item>
    <item>
      <title>Re: Auto synchronization</title>
      <link>https://community.sap.com/t5/technology-q-a/auto-synchronization/qaa-p/13824430#M4855273</link>
      <description>&lt;P&gt;FYI, some documentation may suggest otherwise but &lt;A href="http://sqlanywhere-forum.sap.com/questions/10829/sis-timeline-for-ultralitej-support"&gt;SIS is supported for Android&lt;/A&gt;.&lt;/P&gt;</description>
      <pubDate>Thu, 05 Apr 2012 13:17:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/auto-synchronization/qaa-p/13824430#M4855273</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-04-05T13:17:56Z</dc:date>
    </item>
    <item>
      <title>Re: Auto synchronization</title>
      <link>https://community.sap.com/t5/technology-q-a/auto-synchronization/qaa-p/13824428#M4855271</link>
      <description>&lt;P&gt;In addition to Graham's valid answer, if you do want to do scheduled synchronizations (for example to save the performance drain of doing synchronizations after many updates in a short time interval) there are several options.  One thing I do not recommend is doing a potentially long-running operation like synchronization on the UI thread (such as a button click).  A couple of options are: (1) you could use java.util.Timer to run scheduled synchronizations on a thread.  (2) you could use android.os.AsyncTask to run synchronizations on a background thread.&lt;/P&gt;</description>
      <pubDate>Thu, 12 Apr 2012 11:38:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/auto-synchronization/qaa-p/13824428#M4855271</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-04-12T11:38:41Z</dc:date>
    </item>
    <item>
      <title>Re: Auto synchronization</title>
      <link>https://community.sap.com/t5/technology-q-a/auto-synchronization/qaa-p/13824429#M4855272</link>
      <description>&lt;P&gt;Thanks for the answers, I made it using AlarmManager, because the Timer has problems when the phone goes into sleep mode. The processor slows down and the timer doest'n execute as it is scheduled.&lt;/P&gt;</description>
      <pubDate>Wed, 18 Apr 2012 10:31:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/auto-synchronization/qaa-p/13824429#M4855272</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-04-18T10:31:34Z</dc:date>
    </item>
  </channel>
</rss>

