Cracking Windows Phone and BlackBerry Native Development: Cross-Platform Mobile Apps Without the Kludge by Matthew Baxter-Reynolds

Cracking Windows Phone and BlackBerry Native Development: Cross-Platform Mobile Apps Without the Kludge by Matthew Baxter-Reynolds

Author:Matthew Baxter-Reynolds
Language: eng
Format: epub
Publisher: Apress®
Published: 2011-05-23T04:00:00+00:00


Synchronization 1: Downloading Bookmarks

OData is a very new protocol, and I wanted to use it in the book because I felt it would become an important protocol over the next few years. Although it started life within Microsoft, it is now an open standard. (More importantly, knowing that the RESTful services were proprietary, I wanted to give the applications the capability of talking to an open protocol.)

If you followed along during the iOS and Android chapters, you'll know that we had to build an OData client ourselves. Over the next few years, it's likely that libraries will become available for iOS and Android that will make communicating with OData sources easier. That said, it's not particularly likely that anyone will build a Windows Mobile library for OData communications.

The Six Bookmarks application therefore has a roll-your-own OData client based, as mentioned before, on the roll-your-own Android implementation discussed previously.

In this section, we'll look at the code that downloads the bookmarks from the OData source and look at the stub within the synchronization routine that does the downloading. In a later section, we'll send changes back up.

The roll-your-own implementation essentially has to create an XML document of the appropriate form and send it to the appropriate URL. The server—obviously—will do the hard work in getting it into the underlying store.

Note When migrating from Windows Mobile to Windows Phone, if you happen to have rolled your own OData proxy, this will still work on Windows Phone, and hence the choice to migrate it over to the Windows Phone library/Visual Studio–generated proxy is up to you. (That said, if your OData service proxy makes calls in a synchronous fashion, you'll need to modify this so that calls can be made asynchronously.)



Download



Copyright Disclaimer:
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.
Popular ebooks
Deep Learning with Python by François Chollet(12571)
Sass and Compass in Action by Wynn Netherland Nathan Weizenbaum Chris Eppstein Brandon Mathis(7781)
Grails in Action by Glen Smith Peter Ledbrook(7696)
Secrets of the JavaScript Ninja by John Resig Bear Bibeault(6419)
Kotlin in Action by Dmitry Jemerov(5065)
WordPress Plugin Development Cookbook by Yannick Lefebvre(3802)
Mastering Azure Security by Mustafa Toroman and Tom Janetscheck(3330)
Learning React: Functional Web Development with React and Redux by Banks Alex & Porcello Eve(3087)
Mastering Bitcoin: Programming the Open Blockchain by Andreas M. Antonopoulos(2868)
The Art Of Deception by Kevin Mitnick(2606)
Drugs Unlimited by Mike Power(2467)
Kali Linux - An Ethical Hacker's Cookbook: End-to-end penetration testing solutions by Sharma Himanshu(2313)
The Innovators: How a Group of Hackers, Geniuses, and Geeks Created the Digital Revolution by Walter Isaacson(2302)
Writing for the Web: Creating Compelling Web Content Using Words, Pictures and Sound (Eva Spring's Library) by Lynda Felder(2262)
SEO 2018: Learn search engine optimization with smart internet marketing strategies by Adam Clarke(2194)
A Blueprint for Production-Ready Web Applications: Leverage industry best practices to create complete web apps with Python, TypeScript, and AWS by Dr. Philip Jones(2179)
JavaScript by Example by S Dani Akash(2138)
DarkMarket by Misha Glenny(2083)
Wireless Hacking 101 by Karina Astudillo(2077)
Full-Stack React Projects by Shama Hoque(1990)