ContentProvided开发者_开发技巧 defined for synchronization is dummy (in accordance with this approach).
If API > 8, (95% of devices) use ContentResolver.addPeriodicSync()
If API = 7, (5.5% of devices as of Mar 2102) create a service with a periodic timer callback, and call ContentResolver.requestSync()
.
API < 6 does not support syncAdapter, so no worries.
精彩评论