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

New Developer
Posts: 19
Registered: ‎12-23-2009
My Device: Not Specified

CodeModuleGroup.FLAG_HIDDEN on 5.0

Does this require a 4th key in order to do this on os 5.0?


 cmg[idx].setFlag(CodeModuleGroup.FLAG_HIDDEN, true);


This keeps on throwing a ControlledAccessException but I remember seeing somewhere once a message saying it required another key for me signed but I've already signed the app with the 3 keys.


Or is this something that is not available any longer in 5.0?

New Developer
Posts: 19
Registered: ‎12-23-2009
My Device: Not Specified

Re: CodeModuleGroup.FLAG_HIDDEN on 5.0

Does anyone have an answer to this?


Version 5.0 api says setFlag throws ControlledAccessException and requires some RRI key. What is this?


ControlledAccessException - if an attempt is made to modify the REQUIRED or HIDDEN flags and the calling module has not been signed by RRI.key.

Posts: 17
Registered: ‎08-02-2010
My Device: 8900

Re: CodeModuleGroup.FLAG_HIDDEN on 5.0

[ Edited ]

What do you mean the 4th key and the 3 keys?


I have try that on simulator of JDE 4.7,but it failed.


setFlag(CodeModuleGroup.FLAG_REQUIRED, true) did work,but setFlag(CodeModuleGroup.FLAG_HIDDEN, true) didn't. Why?


Could you help me?

[edited for privacy] THX.