12-08-2009 06:25 AM
hi, i install big application (which has few cod) like this:
//downloaded data
byte[] response = rimConnection.doReceivePostSwitcher(order, url, param1, param2, param3);
//create new module
int myModule = CodeModuleManager.createNewModule(response.length, response, response.length);
//save new module
CodeModuleManager.saveNewModule(myModule);
and i do it for each cod. after that, i've got my application installed. but now i want to remove it.. earlier i used this code:
CodeModuleManager.deleteModuleEx(CodeModuleManage
but it looks like when app was installed in few parts it does not work...
do You maybe know how can i solve it?
regards
Solved! Go to Solution.
12-08-2009 08:52 AM
This is probably because you aren't removing all the modules you've installed. You need to remove all named modules. For example, if you install, say, two modules AppModule and LibModule, you need to remove the very same two modules too.
12-09-2009 02:17 AM
i've found what the problem was. name of the midlet was: "MyCompanyName AppName". so there was space between it. i've checked under options->advanced->applications and it tourned out that it was saved as: "MyCompanyName$20AppName".
so now i'm checking if there is space in app name and f there is, i add '$20' instead of it. and it works.
regards and thx!