android-syncadapter

Why does ContentResolver.requestSync not trigger a sync?

只愿长相守 提交于 2019-11-26 11:00:07
I am trying to implement the Content-Provider-Sync Adapter pattern as discussed at Google IO - slide 26. My content provider is working, and my sync works when I trigger it from the Dev Tools Sync Tester application, however when I call ContentResolver.requestSync(account, authority, bundle) from my ContentProvider, my sync is never triggered. ContentResolver.requestSync( account, AUTHORITY, new Bundle()); Edit -- added manifest snippet My manifest xml contains: <service android:name=".sync.SyncService" android:exported="true"> <intent-filter> <action android:name="android.content.SyncAdapter"

Sync data between Android App and webserver [closed]

北城余情 提交于 2019-11-26 02:22:59
I want to sync data (such as db record, media) between an Android App and a Server. If you've seen Evernote or similar Applications, you certainly understand what I mean. I have some question (imagine we want to sync DB records): Every user has a part of server space for himself (such as Evernote or Dropbox ). Maybe the user creates new records by cellphone and creates new records in server. How can I match these records together? If there are records with same ID What algorithms do you suggest me? Except JSON , Are there any way for send data between cellphone device and server? If

Sync data between Android App and webserver [closed]

最后都变了- 提交于 2019-11-26 01:09:38
问题 I want to sync data (such as db record, media) between an Android App and a Server. If you\'ve seen Evernote or similar Applications, you certainly understand what I mean. I have some question (imagine we want to sync DB records): Every user has a part of server space for himself (such as Evernote or Dropbox ). Maybe the user creates new records by cellphone and creates new records in server. How can I match these records together? If there are records with same ID What algorithms do you