BlackBerry Forums Support Community               

Closed Thread
 
LinkBack Thread Tools
Old 11-16-2010, 12:36 AM   #1 (permalink)
Thumbs Must Hurt
 
Join Date: Nov 2007
Model: 8100
PIN: N/A
Carrier: vodafone
Posts: 61
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default Loading COD file

Please Login to Remove!

Hi there,

i am facing problem in loading COD file(1.09 KB) programatically .i used following straight forward method

Code:
 //Create the new cod file.

moduleHandles[count] = CodeModuleManager.createNewModule(codData.length, codData, codData.length);
					
//Save the module

int result = CodeModuleManager.saveNewModule(moduleHandles[count], true);	
						
//Ensure that the cod file was saved.

if (result != CodeModuleManager.CMM_OK && result != CodeModuleManager.CMM_OK_MODULE_OVERWRITTEN){

//The cod file was not saved.

throw new Exception("Failed to save cod.");
}
							
//Add the CodeModule to the CodeModuleGroup.	
			cmGroup.addModule(CodeModuleManager.getModuleName(moduleHandles[count]));
when ever i tried this in my simulator the installed COD module have some additional information

mentioning Policy Restriction and there by i cant able to access that module but when i tried reset/reboot the Simulator this informations removed in that COD module and i can access the class files resides inside that module.i am sure no IT policy set in my simulator and i dont know how it working . i have attached the ScreenShots someone
please go through it and help me please...









Last edited by sunnan : 11-16-2010 at 12:43 AM.
Offline  
Closed Thread


Thread Tools

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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads for: Loading COD file
Thread Thread Starter Forum Replies Last Post
How can resource files be included into the Cod file when compiling with RAPC ? MobileDeveloperUK Developer Forum 1 10-14-2010 05:57 PM
cod file loading in actual blackberry problem codermalfunction Developer Forum 0 03-12-2009 02:05 AM
Why we need to convert jar file into cod file sandypop Developer Forum 3 02-19-2009 05:41 PM
Don't use Voice Dialing? Remove it and free up over 1/2 MB of Memory John Clark General BlackBerry Discussion 83 08-06-2008 12:38 PM
Getting Error 907 Invalid Cod when downloading application through BES using OTA hemant.bobade Developer Forum 3 06-19-2008 07:05 AM

IBM 1337765 Genuine OEM Lift-Off Correction Tape PACK OF 2 - FOR IBM WHEELWRITER
$17.99
IBM 1337765 Genuine OEM Lift-Off Correction Tape PACK OF 2 - FOR IBM WHEELWRITER pictureIBM 1337765 Lift-Off CorrectionTape - Genuine OEM for IBM Wheelwriter
$9.99
IBM 1337765 Lift-Off CorrectionTape - Genuine OEM for IBM Wheelwriter  pictureOEM IBM SurePOS 700 4800-743/783 250W Power Supply DPS-250AB-45A 73W0893 73Y0892
$49.99
OEM IBM SurePOS 700 4800-743/783 250W Power Supply DPS-250AB-45A 73W0893 73Y0892 pictureOEM IBM SurePOS 700 4800-743/783 250W Power Supply DPS-250AB-45A 46N1999 46N1998
$49.99
OEM IBM SurePOS 700 4800-743/783 250W Power Supply DPS-250AB-45A 46N1999 46N1998 pictureNEW IBM SELECTRIC III TYPEWRITER PART, WHITE LEFT MARGIN POINTER OEM NOS
$9.99
NEW IBM SELECTRIC III TYPEWRITER PART, WHITE LEFT MARGIN POINTER OEM NOS  picture






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