Address Book | developer.brewmp.com Address Book | developer.brewmp.com

Developer

Address Book

Forums:

Hi,

how is it possible the creation of an object of IAddrBook by using AEECLSID_ADDRBOOK is failing, i.e. doesn't return anything?

I have set the privileges of my applet to contain AEEPRIVID_PPLAddrBook but it seems it doesn't work.
Is it somehow limited by the simulator itself?

I would be glad if you could please let me know how to make it work so that I can debug my own code.

Thank you very much.

The actual error code returned by ISHELL_CreateInstance with class id AEECLSID_ADDRBOOK is dbc_MISUSE.
The only description I could find is: "Library used incorrectly"
What could be wrong?
I highly appreciate a help.
(By the way the same code was working correctly with BREW 3.1.5).
Thanks

The actual error code returned by ISHELL_CreateInstance with class id AEECLSID_ADDRBOOK is dbc_MISUSE.
The only description I could find is: "Library used incorrectly"
What could be wrong?
I highly appreciate a help.
(By the way the same code was working correctly with BREW 3.1.5).
Thanks

Hi maranza,
For giving addressbook privileges write the following code in your .cif file. Save the file and then compile. See if it helps.
1. include "../../../platform/system/inc/AEEPLPrivs.bid" -- For Giving Priveleges
PrivLevel {
AEEPRIVID_PLFile, -- IFileMgr, IDBMgr
AEEPRIVID_PLDownload, -- IDownload
AEEPRIVID_PLSharedWrite, -- Write Access - Shared Directory
AEEPRIVID_PLRinger, -- Access - Ringer Directory,
AEEPRIVID_PLAddrBook, -- Access to Address Book
AEEPRIVID_PLSystem, -- System

Paste your .cif file for any further assistance.
Thanks,
Ambarish

Hi maranza,
For giving addressbook privileges write the following code in your .cif file. Save the file and then compile. See if it helps.
1. include "../../../platform/system/inc/AEEPLPrivs.bid" -- For Giving Priveleges
PrivLevel {
AEEPRIVID_PLFile, -- IFileMgr, IDBMgr
AEEPRIVID_PLDownload, -- IDownload
AEEPRIVID_PLSharedWrite, -- Write Access - Shared Directory
AEEPRIVID_PLRinger, -- Access - Ringer Directory,
AEEPRIVID_PLAddrBook, -- Access to Address Book
AEEPRIVID_PLSystem, -- System

Paste your .cif file for any further assistance.
Thanks,
Ambarish

Thanks ambarish!
It now works. I was specifying *only* the privilege AEEPRIVID_PLFile and AEEPRIVID_PLAddrBook.
With the list of privileges you posted, it works properly.
This however let me think there are some dependencies, meaning that AEEPRIVID_PLAddrBook would require one or more of the privileges besides AEEPRIVID_PLFile.
Is there any place where this is documented?
I checked out the documentation which comes with the SDK, but I haven't seen anything specifically - unless I miss it.
Thank you.

Thanks ambarish!
It now works. I was specifying *only* the privilege AEEPRIVID_PLFile and AEEPRIVID_PLAddrBook.
With the list of privileges you posted, it works properly.
This however let me think there are some dependencies, meaning that AEEPRIVID_PLAddrBook would require one or more of the privileges besides AEEPRIVID_PLFile.
Is there any place where this is documented?
I checked out the documentation which comes with the SDK, but I haven't seen anything specifically - unless I miss it.
Thank you.

Sorry Dude.
It's trial and error. I have also not came across any documentation. Moreover you don't need all the privileges I posted. I required all of them in one of my applications. Just check by removing one by one what are the exact privileges you need.
Thanks,
Ambarish.

Sorry Dude.
It's trial and error. I have also not came across any documentation. Moreover you don't need all the privileges I posted. I required all of them in one of my applications. Just check by removing one by one what are the exact privileges you need.
Thanks,
Ambarish.

That is actually what I had already in mind :)
Let's hope this will get documented at some point by Qualcomm, as it is a bit annoying to look for dependencies.
Thanks.

That is actually what I had already in mind :)
Let's hope this will get documented at some point by Qualcomm, as it is a bit annoying to look for dependencies.
Thanks.