07-24-2011 03:21 PM
Hello i am new in the forum and i am new developing for blackberry.
I am deploying my first application and i have a small problem, i load my app in the simulator with the option " File -> Load Blackberry /application or theme" and in the first time it is ok, but i recompile my code and newly upload to the simulator and then the icon of my app dissapear of the download screen.
To test another, i need to exit simulator and open newly. it is a big problem and a big lose time. Anybody can help me?? What is the problem ?? i think it is not normal exit/open the simulator each recompile time.
Excuse me for my bad english
07-27-2011 02:04 PM
If you're developing/testing on 6.0 you can take advantage of hotswap by using javaloader to load the app. However the fastest thing is just to use Ripple, then you don't even need to rebuild or deploy.
07-28-2011 05:32 AM
Hi - I have the same problem.
- found an article that said that some older version of the smartphone simulator had the problems and you should just install a newer version
- I had tried that, but its not working for me yet ..
- I have tried: SmartPhone Simulator 188.8.131.521 (8900)
- Then after reading the article which mentioned something about OS newer than 184.108.40.206xx
I don't recall exact version given here
Thus I tried the following version:
- This took ages to load first time!, but still can't reload the same project - need to kill simulator every time
- Will now try and load this on SmartPhone Sim version 220.127.116.116 (9300) and see if that's any better (3rd try)
PS: As a workaround
- I install app, but webpages in app link to my PC's webserver, thus I can edit them on the PC without having to reload the app installed on simulator.
Only problem is that webpage is currently being cached - need to test if I can switch caching off with meta tag
07-28-2011 09:15 AM
I do not believe you can hotswap on simulators before 6.0, but if you found an article saying otherwise please post the link.
However your idea of linking to files on a webserver should work and WebWorks does respect caching headers. Another way to do this is to link the files to the SD card.
07-28-2011 11:08 AM
I see the link is found refer to webworks plugin for eclipse - but are on the same topic (ie not being able to reload application in smartphone simulator)
Tnx for the pdf link (How to avoid recompiling - had seen link and then lost it again before I could use it)
Also there are articles talking about reloading apps onto simulator from eclipse (OS 5) - so maybe it will work from eclipse, if not by running the simulator directly (as I'm currently doing)
07-28-2011 11:47 AM - edited 07-28-2011 11:50 AM
I had a look at the link you referenced - it actually describes how to access/reload the pages via an external weblink - not via SDCard.
Guess SDCard is another way to do it - will give it a try
You would probably link to something like file://SDCard/... ?
Btw. finally got my webpages to reload via smartphone simulator - needed to change IIS (Internet Information Server) settings to NOT cache my file.
--> for those that need to set this - see "HTTP Response Headers" -> "Set Common Header", or similar. - I just set my webpage to expire after x seconds.
Funny for the playbook simulator it seemed to work fine without me having to configure IIS.