BlackBerry Forums Support Community               

Closed Thread
 
LinkBack Thread Tools
Old 03-03-2009, 06:21 PM   #1 (permalink)
New Member
 
Join Date: Mar 2009
Model: 9000
PIN: N/A
Carrier: vodafone
Posts: 3
Post Thanks: 0
Thanked 0 Times in 0 Posts
Question unable to access secured api

Please Login to Remove!

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,

Last edited by mayotas : 03-03-2009 at 08:12 PM.
Offline  
Old 03-03-2009, 07:50 PM   #2 (permalink)
BlackBerry Extraordinaire
 
Join Date: Mar 2008
Location: Austin, TX
Model: 9700
PIN: N/A
Carrier: T-Mobile
Posts: 1,644
Post Thanks: 0
Thanked 34 Times in 33 Posts
Default

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.
Offline  
Old 03-03-2009, 08:11 PM   #3 (permalink)
New Member
 
Join Date: Mar 2009
Model: 9000
PIN: N/A
Carrier: vodafone
Posts: 3
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default

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,
Offline  
Old 03-03-2009, 09:54 PM   #4 (permalink)
BlackBerry Extraordinaire
 
Join Date: Mar 2008
Location: Austin, TX
Model: 9700
PIN: N/A
Carrier: T-Mobile
Posts: 1,644
Post Thanks: 0
Thanked 34 Times in 33 Posts
Default

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.
Offline  
Old 03-05-2009, 08:28 PM   #5 (permalink)
Thumbs Must Hurt
 
Join Date: Nov 2008
Location: Sioux Falls, SD
Model: 9530
PIN: N/A
Carrier: Verizon Wireless
Posts: 65
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default

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
__________________
Handspring >> Palm >> BB Pearl >> BB Storm

Tumblog: http://www.geekkink.com
Blog: http://www.zechariahs.org/blog
Offline  




Copyright 2004-2016 BlackBerryForums.com.
The names RIM and BlackBerry are registered Trademarks of BlackBerry Inc.