Thanx Pit,
ya I m able to catch the exception.
So is my way of accessing the address field is correct???
if yes then I've another query.Actually first I m adding the contact and then I need to get that.If my way of accessing address field is correct then the way of adding address in address book may b wrong.
Here is my code:
Code:
String[] addr=new String[contactList.stringArraySize( contact.ADDR)];
try{
addr[0] ="Some address";
}
catch(Exception e)
{
System.out.println("Exception in adding Address"+e);
}
if (contactList.isSupportedField(Contact.ADDR))
{
contact.addStringArray(Contact.ADDR,Contact.ATTR_HOME, addr);
}
Plzzzz help me..........