Chapter 10

WebData Applications

WHAT’S IN THIS CHAPTER?

  • Creating a Migrate project
  • Interfacing with the Migrate REST proxy
  • Setting up a device
  • Looking at future directions: MigrateClinic

WROX.COM CODE DOWNLOADS FOR THIS CHAPTER

Please note that all the code examples in this chapter are available at https://github.com/wileyenterpriseandroid/Examples.git and as a part of the book’s code download at www.wrox.com on the Download Code tab.

In this chapter you learn about an implementation of the WebData protocol called Migrate. The discussion walks through a single application — the simple Contacts application introduced in Chapter 5. It then implements the Contacts application on top of the Migrate framework.

Chapter 9 introduced the concept of the WebData API and described Migrate, a generic content provider that can be used as a backend for a wide variety of applications. This chapter looks at what an application that uses such a generic provider might look like. You’ll be writing an application similar to the restfulCachingProviderContacts project from Chapter 5 that uses Migrate instead of its own, private data-synchronization code.

This chapter demonstrates:

  • Creating a new project using the Migrate tools
  • Converting an existing project to use the Migrate framework
  • Installing the Migrate generic content provider on a device and creating an automatically synchronized account to support it
  • Running a Migrate-based application
  • The future of the Migrate platform
NOTE We are actively ...

Get Enterprise Android: Programming Android Database Applications for the Enterprise now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.