12-11-2010 07:56 AM
Hi All,
I am working on 5.0 OS.I had a cod file of size 273 KB.I had extracted them into modules.While i am using CodeModuleManager .createNewModule(codData.length, codData, codData.length); i am getting value as 0.Please let me know why it is failed.They are working well when i installed in mobile.But now i am getting like this.Please reply me.Thank You!!!
Sorry for My English............................
12-12-2010 10:17 PM
Are you attempting to supply the entire code in one byte array, or are you downloading each sibling and adding each separately? I think the second approach is the only one that will work.
12-12-2010 11:10 PM
Hi peter strange,
I am also Dividing the cod file into slibes of 64KB or less each.And i am doing for each slibe like this
int handleCode=CodeModuleManager.createNewModule(codData.length, codData,codData.length);
but i am getting 0 as result.Please specify on which cases it should failed to create a new module.How can i overcome this problem.Thank you in advance!!!
12-13-2010 04:10 AM
I may be wrong but I think that the process you need to use goes more like this:
for ( int i = 0; i < numberOfslices; i++ ) {
handleCode=CodeModuleManager.createNewModule(codDa
}
12-13-2010 05:10 AM
Hi all,
I had a cod file with size of 70KB.How can i create a new module to it and how can i add it to a codemodulegroup..Please help me in solving this.Thanks In advance!!
12-13-2010 07:20 AM - edited 12-13-2010 07:21 AM
From memory, there is a sample or a KB article that describes how to do this. You might also find searching the forum useful, for example, do these help?
12-13-2010 08:26 AM
Thank you for your replies peter.But i had already maken the cod into slibes and one of that slibe is more than 64 KB.
12-15-2010 12:42 PM - edited 12-15-2010 12:44 PM
The maximum size of a COD file is 128k. It is made up of 64k of application space (complilied code) and 64k of resource space (bundled files, like images). So a 70k sibling COD file is valid. This example should help with the use of CodeModuleManager and CodeModuleGroupManager.
Programmatically install and upgrade applications
01-09-2012 05:35 AM
Greetings...
I have an application which Programmatically install app2 and the app2 get installed perfectly but installed app menu is not working/ showing / jvm error or and on clicking symbol key throws an jvm error on simulator .
When I manually install the app2 the above two issues are not there.
Please help me on solving the issue.
Thanks,
Ramesh