FAQ Database Discussion Community


ListView not updating after web service Sync

android,android-listview,android-listfragment,android-syncadapter,android-webservice
I have impelmented SyncAdapter that calls webservice and insert/update database. I would like to show some of this data in ListView so i implemented ListFragment in witch the data is displayed via CursorAdapter. And everything works ok, except when I get new data from web and insert it into database,...

Sync Adapter not calling onCreate

android,android-intent,android-activity,android-service,android-syncadapter
Do we need to start the Sync Adapter service or framework starts implicitly? I have put a log on Constructor, onCreate, onDestroy of Sync Adapter service and when I start the app, I don't see the logs in the logcat. But when I do on activity onCreate Intent serviceIntent =...

Bi-Directional Sync on Android Using SyncAdapter

sqlite,synchronization,android-contentprovider,android-syncadapter
I am planning to create sqlite table on my android app. The data comes from the the server via webservice. I would like to know what is the best way to do this. Should I transfer the data from the webservice in a sqlite db file and merge it or...

SyncAdapter stays awake for hours on end

android,android-syncadapter
My Android app uses a SyncAdapter to sync with my API service. I use delayUntil to tell it to only sync every half an hour. However, some users are reporting incidents where it never goes to sleep again once it's done, draining the phone battery (e.g. the app shows up...

SyncAdapter vs JobScheduler

android,android-5.0-lollipop,android-syncadapter,android-jobscheduler
Excluding the fact that JobScheduler only supports API > 21 - are JobSchedulers designed to fully replace SyncAdapters? Or does SyncAdapter contain any functionality lacking by JobScheduler? My use case is syncing an RSS feed every couple of hours. This is doable with a JobScheduler - right?...