O'Reilly logo

Appcelerator Titanium Smartphone App Development Cookbook - Second Edition by Jason Kneen

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Accessing the contacts / address book

There will be times when you want the user to access existing data from their device to populate some fields or a database within your own application. Possibly the best example of this is the utilization of the address book and contact details.

If you have built, for example, an application that was primarily meant for sharing data over e-mail, using the address book in the device would allow the user to select contacts that they already have from a selection list, as opposed to having to remember or re-enter the data separately.

In this recipe, we'll create a basic interface that accesses our address book and pulls a contact's details, filling in our interface components—including some text fields and an image ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required