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...