English 中文(简体)
View changes without restarting Blackberry simulator?
原标题:

i am using eclipse and the blackberry simulator for my BB development. is there any way of viewing your code changes without having to close the current simulator session and start a new one? it seems like it s a pain in the rear to activate a new session each and every time (just to see a code change).

Of course, if you attempt to run another instance of a simulator in eclipse, you will get a warning dialog stating that "A Blackberry debugging session is already active. Only one Blackberry debugging session can be active at one time."

thank you very much in advance,

ac

问题回答

I found this here:

Reload a BlackBerry device application without restarting the BlackBerry Smartphone Simulator Before you begin: You must install the BlackBerry® Java® SDK 5.0 or later on your computer.

In Eclipse® right-click a BlackBerry device application. Complete one of the following tasks: Click Run As > BlackBerry Simulator. Click Debug As > BlackBerry Simulator. In the BlackBerry® Smartphone Simulator, click the icon to run the application. In Eclipse, make changes to the application that is running. Save the changes. Complete one of the following tasks: On the Run menu, clickRun As > BlackBerry Simulator. On the Run menu, click Debug As > BlackBerry Simulator. The changes to the BlackBerry device application appear in the BlackBerry Smartphone Simulator.

I found writing a shell script to package and deploy the app with a few specific parameters was far more efficient--time-wise. Here s an example:

"$SDKDIR/dependencies/tools/bin/blackberry-deploy" -uninstallApp -installApp -launchApp -password <your_password> -device 169.254.0.1 -package <path_to_bar_file.bar>

I specify the shell-script to run as a build task in my IDE and and let it do it s job. The key here is the -uninstallApp part & -installApp params which saves a lot time in the long run.





相关问题
what s wrong with concatenation in blackberry application?

For the life of me, I can t understand why adding a concatenated string to the MainScreen is causing the BB simulator to throw an exception. If I run a VERY simple hello program with the following ...

View changes without restarting Blackberry simulator?

i am using eclipse and the blackberry simulator for my BB development. is there any way of viewing your code changes without having to close the current simulator session and start a new one? it seems ...

Mobile test for local html files

I have local html files that I need to know how they look like in various model of Nokia, Android, iPhone, Blackberry. Is there a way to do this? I google some online website for Nokia simulator but ...

Blackberry older simulator

my client wants me to make an application which works on pre4.0 os... i understand that if i make 1 like that then it wont work on the latest os... But my actual problem is that though i did the ...

Blackberry simulator not creating COD file

This is an answer to anyone having problems getting a program to appear in the Blackberry simulator or problems generating a COD file. I have been programming in JAVA using the Eclipse IDE and my ...

Blackberry simulator won t load cod file from eclipse

I ve got eclipse installed with the appropriate blackberry plug-ins, etc. I can build the project fine. When I try to debug using the simulator, the cod file is placed into the simulator s directory ...

热门标签