Forums | developer.brewmp.com Forums | developer.brewmp.com

Developer

Forums

Forums:

hi everybody

i am newbie to brew and i want to add a picture in the address book. can i add and save the picture in the address field where all the information(firstname , middlename , phone number etc....) is saved please help me

thankx

You can do this only if the device supports it. OEMs decide what IAddrBook features they want to support.
The API provides both AEE_ADDRFIELD_PHOTO and AEE_ADDRFIELD_PHOTOURL, but at the moment I'm not aware of any specific devices that support these fields.

You can do this only if the device supports it. OEMs decide what IAddrBook features they want to support.
The API provides both AEE_ADDRFIELD_PHOTO and AEE_ADDRFIELD_PHOTOURL, but at the moment I'm not aware of any specific devices that support these fields.

hi every one
i am newbie and i am still confusing how to save photo in address book so please give me some code regarding how to save photo in address book so the code help me.please please......
thankx

hi every one
i am newbie and i am still confusing how to save photo in address book so please give me some code regarding how to save photo in address book so the code help me.please please......
thankx

Hi Parrish,
I am trying to get the photo from a contact or add photo to a contact in addressbook, is it still possible,
I tried for help in forums no luck yet! any suggestions?
if (nNumOfRecs > 0)
{
IADDRBOOK_EnumRecInit (m_pIAddrBook, AEE_ADDR_CAT_NONE, AEE_ADDRFIELD_NONE,NULL,0);
for(i=0; i
{
pIAddrRec = IADDRBOOK_EnumNextRec(m_pIAddrBook);
nFieldCount = IADDRREC_GetFieldCount(pIAddrRec);
for( j = 0; j < nFieldCount; j++)
{
pAddrField = IADDRREC_GetField(pIAddrRec, j);
switch(pAddrField->fID)
{
case AEE_ADDRFIELD_NAME:
WSTRNCOPY(pAddrBookData[i].ADDR_NAME, 20, (AECHAR*)pAddrField->pBuffer);
DBGPRINTF("NAME:%S", pAddrBookData[i].ADDR_NAME);
break;
case AEE_ADDRFIELD_PHONE_CELL:
WSTRNCOPY(pAddrBookData[i].ADDR_CELLPHONE, 32, (AECHAR*)pAddrField->pBuffer);
DBGPRINTF("CELL:%S", pAddrBookData[i].ADDR_CELLPHONE);
case AEE_ADDRFIELD_RINGTONE:
WSTRNCOPY(pAddrBookData[i].ADDR_RINGTONE, 59, (AECHAR*)pAddrField->pBuffer);
DBGPRINTF("RINGTONE:%S", pAddrBookData[i].ADDR_RINGTONE);
case AEE_ADDRFIELD_PHOTO:
WSTRNCOPY(pAddrBookData[i].ADDR_PHOTO, 59, (AECHAR*)pAddrField->pBuffer);
DBGPRINTF("PHOTO:%S", pAddrBookData[i].ADDR_PHOTO);
break;
default:
DBGPRINTF("FIELD:%d, type:%d", pAddrField->fID, pAddrField->fType);
break;
}//end of switch for field type
}//end of for loop for field count
}//end of record count
}

Hi Parrish,
I am trying to get the photo from a contact or add photo to a contact in addressbook, is it still possible,
I tried for help in forums no luck yet! any suggestions?
if (nNumOfRecs > 0)
{
IADDRBOOK_EnumRecInit (m_pIAddrBook, AEE_ADDR_CAT_NONE, AEE_ADDRFIELD_NONE,NULL,0);
for(i=0; i
{
pIAddrRec = IADDRBOOK_EnumNextRec(m_pIAddrBook);
nFieldCount = IADDRREC_GetFieldCount(pIAddrRec);
for( j = 0; j < nFieldCount; j++)
{
pAddrField = IADDRREC_GetField(pIAddrRec, j);
switch(pAddrField->fID)
{
case AEE_ADDRFIELD_NAME:
WSTRNCOPY(pAddrBookData[i].ADDR_NAME, 20, (AECHAR*)pAddrField->pBuffer);
DBGPRINTF("NAME:%S", pAddrBookData[i].ADDR_NAME);
break;
case AEE_ADDRFIELD_PHONE_CELL:
WSTRNCOPY(pAddrBookData[i].ADDR_CELLPHONE, 32, (AECHAR*)pAddrField->pBuffer);
DBGPRINTF("CELL:%S", pAddrBookData[i].ADDR_CELLPHONE);
case AEE_ADDRFIELD_RINGTONE:
WSTRNCOPY(pAddrBookData[i].ADDR_RINGTONE, 59, (AECHAR*)pAddrField->pBuffer);
DBGPRINTF("RINGTONE:%S", pAddrBookData[i].ADDR_RINGTONE);
case AEE_ADDRFIELD_PHOTO:
WSTRNCOPY(pAddrBookData[i].ADDR_PHOTO, 59, (AECHAR*)pAddrField->pBuffer);
DBGPRINTF("PHOTO:%S", pAddrBookData[i].ADDR_PHOTO);
break;
default:
DBGPRINTF("FIELD:%d, type:%d", pAddrField->fID, pAddrField->fType);
break;
}//end of switch for field type
}//end of for loop for field count
}//end of record count
}