O'Reilly logo

PhoneGap 4 Mobile Application Development Cookbook by Zainul Setyo Pamungkas

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

Creating and saving a new contact

Having an address book or an application that can read contact information from the database is fantastic, but wouldn't it be even better if we could add contacts to the database? The good news is that the PhoneGap API not only provides a way to read the information, but also gives developers an incredibly powerful yet easy way to add information.

Getting ready

For this recipe, we'll build on the code created in the previous recipe, Displaying the contact information of a specific individual. This will give us a head start to add more functionality into the application. Therefore, if you haven't yet completed the previous recipe, Displaying the contact information of a specific individual, it would be a good idea ...

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