08-18-2008 06:01 AM
Hi
I have tried to manage contact groups but without results, i think that it could be with PimList.getCategories(); but no results.
Thanks.
Solved! Go to Solution.
08-18-2008 07:23 AM
Hi
i have found that when yo make a contactList.items(), the items returned contains the groups but they are objects of type
net.rim.device.apps.internal.addressbook.groupaddr
I have try with instanceof BlackBerryContactGroup, because i dont know what kind of object is this GroupAddresCardModelImpl
thanks
08-18-2008 07:42 AM
this is very strange, when you use the debugger and see the items you can see the contacts and the groups in the field _addressCards, but when you use
Enumeration items = contactList.items();
while(items.hasMoreElements())
{
Object nextElement = items.nextElement();
}
you only have the contacts, why if you have the groups in the items when you make the loop you only have the contacts?
08-18-2008 08:40 AM
I have found a solution to list the contact groups
BlackBerryContactList contactList = (BlackBerryContactList)BlackBerryPIM.getInstance()
Enumeration items = contactList.items(BlackBerryContactList.SEARCH_GRO
but still i need to create new groups, in the api said that i can only read the groups there is any way to create and update groups?
08-18-2008 10:45 AM