Do you have to exit blackberry simulator every single time you make a change?

瘦欲@ 提交于 2019-12-01 07:41:03

问题


do i have to kill my simulator before i want to see the latest code changes on the sim? or is there a way of getting the BB simulator to pick up the latest code changes without having to exit the current instance and starting the simulator again.


回答1:


There seem to be no way to change the executable while the simulator is running, since jar file are loaded in memory.

So yes you need to kill the simulator everytime you change the code.

Edit : With the version 1.1 of the eclipse plugin you can now to hot swap code on the simulator.




回答2:


I do a file->Load Java Program, file->Reset every compile to avoid exiting the simulator. A real device will have to reboot as well.

edit 02/28/10

from The BlackBerry Developer

After experimenting quite a bit, and posting a few questions, Mark Sohm from RIM (BlackBerry Developer Journal) has filled us in on the conditions that an application update forces a restart:

  1. The application is running or the library is in use.
  2. The application has any open resources (ie: a library could be holding onto something).
  3. The application has an active listener registered with the system.
  4. The application has added menu items to any BlackBerry applications.
  5. It is an auto start application.
  6. The application is listening for incoming IO connections (this would also fall under the "application is running" reason).
  7. The application makes use of persistent storage and/or backup/restore features.


来源:https://stackoverflow.com/questions/2059067/do-you-have-to-exit-blackberry-simulator-every-single-time-you-make-a-change

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!