SyncAdapter using ~10 kb data even when onPerformSync() is empty?

时间:2015-05-04 19:53:01

标签: android android-syncadapter

I implemented a periodic sync adapter into my app with a stub authenticator and content provider following this tutorial. Upon studying my data usage amounts of my app via settings, it seems that the sync adapter uses an overhead of ~10 kb of data each sync even after I removed all code from onPerformSync(). This is undesirable as that is often larger than the actual amount of data that I want to sync. Does anyone know why this happens and how I can get rid of/minimize it? As I said, I don't need/use all the account/autheticator/content provider stuff, I just need the sync adapter to wake up my service and execute my own sync code.

EDIT: Looks like the settings monitor is just inaccurate. I used TrafficStats and the readings now seem correct. However, that is another problem as I don't want users to look at the settings reading and think I am using data that I am not. Any suggestions?

0 个答案:

没有答案