Wrox Programmer Forums
| Search | Today's Posts | Mark Forums Read
BOOK: Enterprise Android: Programming Android Database Applications for the Enterprise
This is the forum to discuss the Wrox book Enterprise Android: Programming Android Database Applications for the Enterprise by Zigurd Mednieks, G. Blake Meike, Laird Dornin, Zane Pan; ISBN: 978-1-118-18349-6
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Enterprise Android: Programming Android Database Applications for the Enterprise section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
  #1 (permalink)  
Old January 31st, 2014, 08:56 PM
Registered User
Points: 5, Level: 1
Points: 5, Level: 1 Points: 5, Level: 1 Points: 5, Level: 1
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jan 2014
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default SyncAdapter-centric Example

I'm on chapter 5 right now and I've been looking for an example of the "SyncAdapter-Centric" design pattern in the book.

This example:

https://github.com/wileyenterprisean...dapterContacts

seems close to figure 5-4 but is missing the "Processor" component.

Does anyone have a good example of figure 5-4?

Thanks
  #2 (permalink)  
Old February 9th, 2014, 10:00 PM
Wrox Author
Points: 12, Level: 1
Points: 12, Level: 1 Points: 12, Level: 1 Points: 12, Level: 1
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Nov 2013
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Thumbs up Chapter index and chapter 5 example:

The chapter repository, EnterpriseAndroidExamples, includes a file called, README.md that contains a complete chapter index. You can see this file online at github.com:

https://github.com/wileyenterpriseandroid/Examples

This file calls out restfulCachingProviderContacts, and syncAdapterContacts as the examples for chapter 5.

syncAdapterContacts is indeed the example for figure 5-4, and it has a processor of sorts - the method syncContacts invokes a restful request on the RESTService and then parses the contacts response for insertion into the relevant content provider database. The "processor" component is not explicit in the example. The figure merely calls out the processor as the component that sits inside the sync adapter to process application specific data ("specific code to parse and store contacts or any other data element"). For specific applications to use this pattern, they would have to modify this portion of the sync adapter.

On the other hand, I encourage you to keep reading to look into chapters 9 and 10 for a framework that supports a generic synchronization and data transfer format - a binary sync adapter and back end service that can, in theory, handle data for all applications. We have a binary sdk that can help you with this process, and I will certainly be happy to answer any questions you might have as you use this SDK. Please check out:

https://github.com/ldornin/projectmigrate/releases/

Again, let me know about any issues! Good luck!

Last edited by discussea; January 29th, 2016 at 11:26 PM..


Similar Threads
Thread Thread Starter Forum Replies Last Post
I need to get the code for <Data-Centric.Net Progr zr1982930 Wrox Book Feedback 12 March 22nd, 2010 06:00 PM
Code of "Data-centric.net programming with c#" sun0379 Wrox Book Feedback 2 December 15th, 2003 11:23 AM
the book <<Data-Centric.net programing with c#>> jamxx All Other Wrox Books 0 November 18th, 2003 10:56 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.