Tuesday, December 08, 2009

How to clean or reset BlackBerry simulator

For a veteran BlackBerry developer, it is not unusual to get his BlackBerry simulator crammed with many icons of applications he developed over the years. At one point, when he needs to scroll deep down the screen to find his intended application icon, it becomes really annoying. He then wants to remove application icons from the simulator.

Another kind of need may arise in case of an application which requires the simulator reset its file system each time the simulator is launched.

I have two versions of the same application with same application icon installed on simulator. I wanted to clear everything up and to test one particular version. But I did not know how to do it. I then googled and found the following solutions.

Solution #1: In JDE, go to File -> Erase simulator file

Deletes the dmp files from the simulator directory but does not remove the application icons.

Solution #2: From command line, run clean.bat located at simulator sub-directory under JDE installation directory such as C:\Program Files\Research In Motion\BlackBerry JDE 4.3.0\simulator

Deletes your applications' files and dmp files from the simulator directory. So the icons are removed!

Solution #3: Delete the following files located at the simulator directory such as C:\Program Files\Research In Motion\BlackBerry Device Simulators 4.2.2\4.2.2.114 (8300-Vodafone):

* dmp files
* debug, cod, csl, cso, jar files of your applications

This works when the installed simulator does not have the solution #2 i.e. clean.bat is absent in the simulator's directory.

Solution #4: If you're using the JDE and wants your simulator reset each time you run it, go to Edit->Preferences; Simulator tab; Memory sub-tab, and check "Reset the filesystem on startup"


No comments:

Post a Comment