Thank you for visiting the BlackBerry Support Community Forums.
BlackBerry will be closing the BlackBerry Support Community Forums Device Forums on April 1st (Developers, see below)
BlackBerry remains committed to providing excellent customer support to our customers. We are delighted to direct you to the CrackBerry Forums, a well-established and thorough support channel, for continued BlackBerry support. Please visit http://forums.crackberry.com or http://crackberry.com/ask. You can also continue to visit BlackBerry Support or the BlackBerry Knowledge Base for official support options available for your BlackBerry Smartphone.
"When we launched CrackBerry.com 10 years ago, we set out to make it a fun and useful destination where BlackBerry Smartphone owners could share their excitement and learn to unleash the full potential of their BlackBerry. A decade later, the CrackBerry community is as active and passionate as ever and I know our knowledgeable members and volunteers will be excited to welcome and assist more BlackBerry owners with their questions."
- Kevin Michaluk, Founder, CrackBerry.com
Developers, for more information about the BlackBerry Developer Community please review Join the Conversation on the BlackBerry Developer Community Forums found on Inside BlackBerry.
04-09-2010 04:42 PM - edited 04-09-2010 05:03 PM
I just discovered today that the newly released Eclipse plugin version 1.1 allows us to deploy modified versions of the app to the simulator without having to wait for the damned thing to reboot.
Ecstatic that I would no longer have to wait 2 minutes to test minor changes, I went ahead and tried it out. Surely enough, I can deploy without it telling me "only one instance of the simulator can be running" and something happens on the device since a garbage collection occurs, but when I try to open the Downloads app folder I get three or four IllegalArgumentExceptions (from the OS, not my app apparently). Then upon clicking my app icon I get an error stating "Application Mango was terminated: denied permission 'Cross Application Communication'."
After that I can't get the app running again unless I reboot the simulator.
Any ideas? I would really love to get this working!
EDIT: Follow up, I tried to go to Options >> Applications >> MyApp >> Edit Permissions >> Set all to "Allow". After doing this I am able to start the app without the permissions error. However, after modifying the app and redeploying again these permissions are reset and I have to change them again, even if I go and set the default permissions.
EDIT 2: Oddly, I found a way around this. Before I was always closing the app before re-deploying. However if the app is open when I re-deploy it launches without any problems. That will suffice for me.
06-14-2010 05:23 PM
I run into the same problem - am developing 3 applications and also testing.
all apps using PersistentStore fail with "Cross Application Communication Error" if packaging new.
(only exception - as you mentioned - is the currently opened application in simulator)
so now I always have to restart the simulator if deploying an app which isn't currently opened in simulator
06-15-2010 03:45 AM
i would suggest to check the application permissions prior to launching the real application
12-24-2010 12:11 AM
I'll suggest to use RecordStore instead of PersistentStore while developing.
You should decide if the time spent on making RecordStore implementation will cover time spent on restarting the simulator.
01-20-2011 02:31 PM
Thanks Andiamo, was having the exact same problem and your fix with leaving the app running works great. Although it's really strange that it works because before if I tried re-deploying the app when it was running then I would have to wait ~3mins for the simulator to re-load!