0

I am using this code to implement badge notification in Blackberry

Bitmap bit = Bitmap.getBitmapResource("badge_icon.png");
            HomeScreen.updateIcon(bit);  

This code works fine on simulator with no issues, but fails to do the same on device. :( I have properly signed the code with signing keys, but still its says "Module 'BADGE' attempts to access secure api". I have used other secure api's in code as well... So I know those api's get signed, but i don't know y this api (HomeScreen.updateIcon(bit);) has a problem.

Lucifer
  • 29,392
  • 25
  • 90
  • 143
Hades
  • 75
  • 1
  • 12
  • `This code works fine on *device* with no issues, but fails to do the same on *device*`. Which one of these is supposed to be `simulator`? Also, code signing doesn't look for `private api`s. It'll just come as a warning in your code. I suggest you make custom badges... – tipycalFlow Apr 02 '12 at 08:08
  • do you have just a single module or multiple modules ( libraries?) if yes then you have to sign those modeules as well. – rfsk2010 Apr 02 '12 at 08:09
  • Its a single module. How do i make custom badges? One more thing, when I sign the code with signature tool, the status column says 'not registered' in some places. Why does that happen? – Hades Apr 02 '12 at 09:39
  • 1
    issue solved!! was my mistake, i forgot to register signing key RCR. :P. Neways thanks guys.. :) – Hades Apr 02 '12 at 14:37
  • You can answer your own question, and then mark that answer as accepted. It won't give you any reputation points, but that is the right way to indicate you answered your own question. – Michael Donohue Apr 15 '12 at 22:37

0 Answers0