BlackBerry Forums Support Community

BlackBerry Forums Support Community (http://www.blackberryforums.com/)
-   Developer Forum (http://www.blackberryforums.com/developer-forum/)
-   -   unable to access secured api (http://www.blackberryforums.com/developer-forum/179321-unable-access-secured-api.html)

mayotas 03-03-2009 05:21 PM

unable to access secured api
 
Hi ,

i am trying to read the contacts list

ContactList _contactList = (ContactList)PIM.getInstance().openPIMList(PIM.CON TACT_LIST, PIM.READ_ONLY);

on running the application on Bold 9000 i got unable to access secured api error message.

anyone can help me knowing the reason of this problem and how can i solve it ?

Thanks,

Dougsg38p 03-03-2009 06:50 PM

You need to sign the application to access the secure API's.

You can apply at this link:

BlackBerry - Java Code Signing Keys

The cost for the keys is $20. This provides unlimited signing for all your application development.

mayotas 03-03-2009 07:11 PM

Many thanks for your reply,

as i got from the link you sent , i need to sign the application to use the classes or methods marked as "Signed" in the APIs reference , while ContactList class and importContact method are not marked as singed.

Thanks,

Dougsg38p 03-03-2009 08:54 PM

From the API docs ContactList:

Category:
Signed: This element is only accessible by signed applications. If you intend to use this element, please visit BlackBerry - Java Code Signing Keys to obtain a set of code signing keys. Code signing is only required for applications running on BlackBerry smartphones; development on BlackBerry Smartphone Simulators can occur without code signing.

zechariahs 03-05-2009 07:28 PM

I ran into a lot of trouble when I attempted to sign my application. If you run into trouble, you may want to check out my write-ups: Digital Meanderings Blog Archive BlackBerry Code Signing Help and Digital Meanderings Blog Archive BlackBerry Code Signing Help, Part II


All times are GMT -5. The time now is 07:31 AM.

Powered by vBulletin® Version 3.6.12
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.