BlackBerry Forums Support Community
              

Closed Thread
 
Thread Tools
Old 03-03-2009, 06:21 PM   #1
mayotas
New Member
 
Join Date: Mar 2009
Model: 9000
PIN: N/A
Carrier: vodafone
Posts: 3
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
Dougsg38p
BlackBerry Extraordinaire
 
Join Date: Mar 2008
Location: Austin, TX
Model: 9700
PIN: N/A
Carrier: T-Mobile
Posts: 1,644
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
mayotas
New Member
 
Join Date: Mar 2009
Model: 9000
PIN: N/A
Carrier: vodafone
Posts: 3
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
Dougsg38p
BlackBerry Extraordinaire
 
Join Date: Mar 2008
Location: Austin, TX
Model: 9700
PIN: N/A
Carrier: T-Mobile
Posts: 1,644
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
zechariahs
Thumbs Must Hurt
 
Join Date: Nov 2008
Location: Sioux Falls, SD
Model: 9530
PIN: N/A
Carrier: Verizon Wireless
Posts: 65
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  
Closed Thread



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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


Fanuc Flash Memory Module A20B-2901-0891/01A picture

Fanuc Flash Memory Module A20B-2901-0891/01A

$374.95



ETERFANT Dental LED Flash Photography Oral Cell Phone Camera Filling Light Tools picture

ETERFANT Dental LED Flash Photography Oral Cell Phone Camera Filling Light Tools

$63.89



ETERFANT Dental Oral LED Filling Light Flash Photography Tools Equipment   picture

ETERFANT Dental Oral LED Filling Light Flash Photography Tools Equipment

$69.29



10* DIP-28 Eeproms Programmable Flash Chip For SST27SF512-70-3C-PG SST 27SF512 picture

10* DIP-28 Eeproms Programmable Flash Chip For SST27SF512-70-3C-PG SST 27SF512

$28.31



LP Weather Logic Seam And Flashing Tape (boxes) picture

LP Weather Logic Seam And Flashing Tape (boxes)

$200.00



REVELPROG-IS SERIAL FLASH & EEPROM PROGRAMMER (1.8V - 5V + ISP, USB) picture

REVELPROG-IS SERIAL FLASH & EEPROM PROGRAMMER (1.8V - 5V + ISP, USB)

$139.00







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