BlackBerryForums.com : Your Number One BlackBerry Community
     

»Sponsored Links

BlackBerryApps.com Best Sellers



Closed Thread
 
LinkBack Thread Tools
  (#1 (permalink)) Old
mayotas Offline
New Member
 
Posts: 3
Join Date: Mar 2009
Model: 9000
PIN: N/A
Carrier: vodafone
Question unable to access secured api - 03-03-2009, 05:21 PM

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 07:12 PM.
   
Sponsored Links
Please Login or Register to Remove these Advertisements!

  (#2 (permalink)) Old
Dougsg38p Offline
BlackBerry Extraordinaire
 
Posts: 1,210
Join Date: Mar 2008
Location: Austin, TX
Model: 8320
PIN: N/A
Carrier: T-Mobile
Default 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.
   
  (#3 (permalink)) Old
mayotas Offline
New Member
 
Posts: 3
Join Date: Mar 2009
Model: 9000
PIN: N/A
Carrier: vodafone
Default 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,
   
  (#4 (permalink)) Old
Dougsg38p Offline
BlackBerry Extraordinaire
 
Posts: 1,210
Join Date: Mar 2008
Location: Austin, TX
Model: 8320
PIN: N/A
Carrier: T-Mobile
Default 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.
   
  (#5 (permalink)) Old
zechariahs Offline
Thumbs Must Hurt
 
Posts: 65
Join Date: Nov 2008
Location: Sioux Falls, SD
Model: 9530
PIN: N/A
Carrier: Verizon Wireless
Default 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


Handspring >> Palm >> BB Pearl >> BB Storm

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


Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On





Copyright © 2004-2010 BlackBerryFAQ.com, BlackBerryForums.com.
The names RIM © and BlackBerry © are registered Trademarks of Research In Motion Limited.