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
Post a Comment