unable to access secured api
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 ?
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.
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.
From the API docs ContactList:
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.
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 01:58 AM.|
Powered by vBulletin® Version 3.6.12
Copyright ©2000 - 2016, Jelsoft Enterprises Ltd.