This tutorial will guide you through a simple example on how to use this API.
AddressBook has three methods that may be invoked from a SD.
In this article we will to see how the AddContact method works.
For the time being the methods ViewContact and RemoveContact are not supported in Android.
This method expects the following parameters (see the Note below):
Let's create the following Transactions for our example:
Apply the WWSD pattern to our transactions (see Applying Work With for Smart Devices Pattern).
In the pattern screen select the Section node.
Take a look at the screen on your right, wich has some default actions. To add a new Action press the Add button.
After the Action has been created, add the code for the associated event.
Note: The First Name and Last Name parameters are mandatory. Email, Phone, Company Name, Photo and Message are optional. Even when some parameters are not included, they should be part of the call code. Also, because parameters are sent by position, when you want to skip one parameter you will have to add it with empty string value.
Drag the new Action to the Action Bar.
Events in Mobile Applications