synchronization - Android : How to restrict disable sync -


in android application using sync adapter sync data server in every 1 hour.i need make happen every time, in android setting --> accounts --> app there option user turning off sync functionality, there way restrict user turning off sync method.

you can restrict disable sync. in syncadapter.xml set android:uservisible false. this:

<sync-adapter xmlns:android="http://schemas.android.com/apk/res/android"           android:contentauthority="com.example.android.basicsyncadapter"           android:accounttype="com.example.android.basicsyncadapter.account"           android:uservisible="false"           android:supportsuploading="false"           android:allowparallelsyncs="false"           android:isalwayssyncable="true" />     

if make uservisible false then, users won't able disable sync settings manually.


Comments

Popular posts from this blog

Command prompt result in label. Python 2.7 -

javascript - How do I use URL parameters to change link href on page? -

amazon web services - AWS Route53 Trying To Get Site To Resolve To www -