public class Contact
| Constructor Summary | |
|---|---|
Contact(Context context)
Standard Constructor |
|
| Method Summary | |
|---|---|
void |
addAddress(java.lang.String address)
Add an address to the contact NOTE: Should only be used after Contact.startNew(); |
void |
addEmail(java.lang.String email_address)
Add an email address to a new contact NOTE: Should only be used after Contact.startNew(); |
void |
addHomePhone(java.lang.String number)
Add a home phone number to a new contact NOTE: Should only be used after Contact.startNew(); |
void |
addImage(java.io.ByteArrayOutputStream image)
Add An image to the contact |
void |
addMobilePhone(java.lang.String number)
Add a mobile phone number to a new contact NOTE: Should only be used after Contact.startNew(); |
void |
addName(java.lang.String name)
Add a name to a new contact NOTE: Should only be used after Contact.startNew(); |
void |
addNote(java.lang.String note)
Add a note to the contact NOTE: Should only be used after Contact.startNew(); |
void |
addWorkPhone(java.lang.String number)
Add a work phone number to a new contact NOTE: Should only be used after Contact.startNew(); |
void |
commit()
Finalise and stores a new contact. |
void |
startNew()
Initiates new contact builder. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Contact(Context context)
context - (Context)
Context of the application using this wrapper| Method Detail |
|---|
public void startNew()
public void commit()
public void addName(java.lang.String name)
name - (String)
Name of the contactpublic void addMobilePhone(java.lang.String number)
number - (String)
Mobile phone number of the contactpublic void addHomePhone(java.lang.String number)
number - (String)
Home phone number of the contactpublic void addWorkPhone(java.lang.String number)
number - (String)
Work phone number of the contactpublic void addEmail(java.lang.String email_address)
email_address - (String)
Email address of the new contactpublic void addAddress(java.lang.String address)
address - (String)
An address of the contactpublic void addImage(java.io.ByteArrayOutputStream image)
image - (ByteArrayOutputStream)
An image for the contact as a ByteArrayOutputStreampublic void addNote(java.lang.String note)
note - (String)
A note about the contact