Welcome!

Welcome to the Official BlackBerry Support Community Forums. This is your resource to discuss support topics with your peers, and learn from each other. New to the forum? Please visit the ‘Getting Started’ link below.
inside custom component

Java Development

Reply
Developer
misty83
Posts: 745
Registered: ‎01-04-2009
Accepted Solution

removing app which consists few cod

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(CodeModuleManager.getModuleHandle(appName), true);

 

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

Please use plain text.
Developer
Posts: 1,474
Registered: ‎04-14-2009

Re: removing app which consists few cod

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.

Please use plain text.
Developer
misty83
Posts: 745
Registered: ‎01-04-2009

Re: removing app which consists few cod

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!

Please use plain text.