Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Java Development

Reply
New Developer
Posts: 6
Registered: ‎10-01-2008
My Device: Not Specified

MainScreen.isObscured() ControlAccessException

I am getting a ControlAccessException on a particular device only (so far) when trying to call isObscured() on my MainScreen instance. I don't have the device with me, but have a guy testing it for me.

 

From what I know:

Blackberry Pearl 8100

Software Version 4.5

The app has all permissions set to Allow

 

Here is a snippet of the jvm log:

S Java Exception - ControlledAccessException - 9/30 23:20:51
| No detail message
| net_rim_cldc
|  ControlledAccess
|  assertRRISignature
|  0x342C
| net_rim_cldc-8
|  Screen
|  isObscured
|  0x50DD

 

Any help would be appreciated. Thanks.

BlackBerry Development Advisor
Posts: 15,017
Registered: ‎07-09-2008
My Device: BlackBerry Passport

Re: MainScreen.isObscured() ControlAccessException

The Screen.isObscured method is an internal method that should not be used in third party applications.  You should only make use of methods that are listed in the JavaDocs.

 

You can use the onObscured method and keep track of the status within your application.

Mark Sohm
BlackBerry Development Advisor

Please refrain from posting new questions in solved threads.
Problem solved? Click the Accept As Solution button.
Found a bug? Report it using Issue Tracker
New Developer
Posts: 6
Registered: ‎10-01-2008
My Device: Not Specified

Re: MainScreen.isObscured() ControlAccessException

Mark,

 

Thanks for the quick reply. I did not know that, but I did notice it wasn't in the JavaDocs. I only found the method through intellisense.

 

I will try to use onObscured().

 

Thanks.

BlackBerry Development Advisor
Posts: 15,017
Registered: ‎07-09-2008
My Device: BlackBerry Passport

Re: ControlAccessException

New Developer
Posts: 10
Registered: ‎07-18-2008
My Device: Not Specified

Re: MainScreen.isObscured() ControlAccessException

Hi Mark,

But I am also getting this error on 9000/4.6:

No detail message
net_rim_cldc
 ControlledAccess
 assertRRISignature
 0x33FF
net_rim_cldc-6
 ApplicationDescriptor
 getLocalizedName

 

And ApplicationDescriptor.getLocalizedName() is a public API method that does not require code signing.

Would appreciate any insight, because I am kinda stuck here.

 

Thank you

BlackBerry Development Advisor
Posts: 15,017
Registered: ‎07-09-2008
My Device: BlackBerry Passport

Re: MainScreen.isObscured() ControlAccessException

What is the full 4 digit version of BlackBerry handheld software you are testing on?  You can see this under Options, About.
Mark Sohm
BlackBerry Development Advisor

Please refrain from posting new questions in solved threads.
Problem solved? Click the Accept As Solution button.
Found a bug? Report it using Issue Tracker
New Developer
Posts: 10
Registered: ‎07-18-2008
My Device: Not Specified

Re: MainScreen.isObscured() ControlAccessException

It is 4.6.0.185(326)
BlackBerry Development Advisor
Posts: 15,017
Registered: ‎07-09-2008
My Device: BlackBerry Passport

Re: MainScreen.isObscured() ControlAccessException

Thanks for the version, I have been able to reproduce this issue.  I also tested this using BlackBerry handheld software version 4.6.1 and found it did work correctly.  So it appears that the issue has been fixed.  As a work around you can use ApplicationDescriptor.getModuleName() to get the non localized name.
Mark Sohm
BlackBerry Development Advisor

Please refrain from posting new questions in solved threads.
Problem solved? Click the Accept As Solution button.
Found a bug? Report it using Issue Tracker