Zigurd Mednieks, G. Blake Meike, Laird Dornin, Zane Pan

Language: English

Pages: 408

ISBN: 1118183495

Format: PDF / Kindle (mobi) / ePub

The definitive guide to building data-driven Android applications for enterprise systems

Android devices represent a rapidly growing share of the mobile device market. With the release of Android 4, they are moving beyond consumer applications into corporate/enterprise use. Developers who want to start building data-driven Android applications that integrate with enterprise systems will learn how with this book. In the tradition of Wrox Professional guides, it thoroughly covers sharing and displaying data, transmitting data to enterprise applications, and much more.

Shows Android developers who are not familiar with database development how to design and build data-driven applications for Android devices and integrate them with existing enterprise systems

Explores how to collect and store data using SQLite, share data using content providers, and display data using adapters

Covers migrating data using various methods and tools; transmitting data to the enterprise using web services; serializing, securing, and synchronizing data

Shows how to take advantage of the built-in capabilities of the Android OS to integrate applications into enterprise class systems

uses INNER JOIN SELECT rc.display_name, c.starred FROM contacts c INNER JOIN raw_contacts rc ON c.name_raw_contact_id = rc._id WHERE NOT rc.display_name IS NULL ORDER BY rc.display_name ASC; c02.indd 47 26-09-2013 19:05:05 48 ❘ CHAPTER 2 THE RELATIONAL MODEL AND SQLITE As mentioned earlier, a join is an important restriction on the cross-product of two tables. As shown in Figure 2-4, a full cross-product of two tables combines each of the rows from the fi rst table with every row from the

of text. In the UI, a value that has extras available shows in the list view with a green check to its left. If there is no blob available, the item has a red X, as shown in Figure 4-5. Clicking on one of the items with a green check starts a new activity that displays the contents of the value’s associated extras, as shown in Figure 4-6. FIGURE 4-5 FIGURE 4-6 The details of implementing the UI are left to the curious. The concern here is how to implement a content provider that efficiently

set of architectural constraints for designing communication protocols between Internet services and their clients — Representational State Transfer or REST. Although REST has roots that go well back into the mid-1990s, the name was introduced and formalized by Roy Fielding in his doctoral dissertation in the year 2000. One of the designers of HTTP, Fielding used REST as a way of formalizing an architectural style that meets the goals of the web, among them extreme, anarchic scalability.

other tools specific to topics introduced in those chapters will be added to your toolchain. Toolchain Test Drive You can test that your toolchain is installed correctly by creating a new Android project, and selecting an example from the SDK as the basis of your project. You should be able to run your project in an Android Virtual Device (AVD). Directions for creating a project are here: http://developer.android.com/training/basics/firstapp/creating-project.html Directions for running a

mainly for the reasons described earlier in this chapter: Java is a stable environment geared toward precluding the possibility of bugs, rather than fi nding them during runtime tests, or worse, in a production environment. Let’s examine the technologies underlying the examples. Spring The power of Spring comes from dependency injection. Say you’re writing a Bank class for a fi nance program, and the class has a reference to an ATM cash machine object. Without dependency injection, you might