Write an application that adds contacts to the BlackBerry® device address book.
- Open rolodex_1.zip
- In the IDE, open the rolodex.jdw workspace
- Open the Rolodex.java source file.
- Add code to the onSave() method to complete the following tasks:
- define variables to store the information that the user entered in the UI
- verify that the user entered a first and last name
- open the handheld address book database
- create a new contact with the information that the user entered
- save the contact to the address book
- reset the UI fields to be empty
- Build and run your application in the simulator.
- In your application, create and save a contact.
- Open the handheld address book and verify that the contact appears.
Check out rolodex_2.zip
In this exercise, you discovered the following things:
- how to access the handheld address book database
- how to create and add a contact