Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Register | FAQ | Members List | Calendar | 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 tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developersí questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Reply
 
Thread Tools Display Modes
  #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
Reply With Quote
  #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.
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off

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 07: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



All times are GMT -4. The time now is 04:59 PM.


Powered by vBulletin®
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.