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

Posts: 52
Registered: ‎04-22-2012
My Device: Z10
My Carrier: Mobilicity
Accepted Solution

CodeModuleManager .. the SQLiteDemo and why I cant encrypt my own DB

I have been at this for days and am considerably dejected. I have never been at this much of a loss to understand how to do something.  How in hell do I get this code to work.. its basically an exact copy / paste from the SQLiteDemo


CodeSigningKey codeSigningKey = CodeSigningKey.get(CodeModuleManager.getModuleHandle("ModuleName"), "NDT");         


I have absolutely no idea what to put in place of "ModuleName"  I have tried my eclipse project name, the class name where this code is located, the cod file name.. i dont know whatelse I can put to keep this thing from throwing an illegal argument exception.. im literally begging for help on this.

BlackBerry Development Advisor
Posts: 15,760
Registered: ‎07-09-2008
My Device: BlackBerry PRIV
My Carrier: Bell

Re: CodeModuleManager .. the SQLiteDemo and why I cant encrypt my own DB

When using CodeModuleManager.getModuleHandle("ModuleName"), the ModuleName is the name of your COD file without the .cod extension.

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