Can we see code changes without restarting blackberry simulator? - blackberry

I am using 5.0 BB JDE.
Is there any way around to see your code changes without restarting BB simulator every time. Or any way to see your changes in less time.
Right now i have to restart my project every time.

Looks like there is no other option than to restart simulator.
I use JDE + Eclipse and my usual workflow is:
Make code changes in Eclipse.
Build with JDE (add new files if any).
Restart the simulator (simulator that is bundled with JDE loads new .cod automatically on restart, for other simulator I have to manually upload new .cod after restart).
I don't run the project from JDE since it takes too long to attach debugger, while actually I need debugger very rarely.

There isn't any need to restart your simulator just run your project after applying the changes.It load new .cod automatically.

Related

Xamarin iOS Simulator running old code

When I debug my Xamarin.iOS project from Visual Studio, it builds, installs on the simulator, and launches the app without issue. But on launching, I'm seeing a bunch of Debug tracing from a method that doesn't even exist in my C# code anymore. I can also set breakpoints on the class from which I removed the method at the same line numbers where this method used to be, and I will see the removed method in the call stack when the debugger stops.
I've closed and reopened Visual Studio, reset the connection to the Mac build server, cleaned and rebuilt my solution, and manually deleted the solution output. On the Mac, I've closed and reopened the simulator, and tried Reset Content and Settings, which does clear out the app. But the situation still persists, even after all that. Is there something else can I try on the Mac to make sure that all cached copies of old code have been deleted?
In your project folder delete the bin and obj folders. This works for me but is still annoying.
Check your Configuration Manager (the drop down with Debug, Release etc) and check that all the projects are being built. It usually unchecks all the projects you are working with for some unknown reason.
This means that it isn't rebuilding all the projects and it hence shows an old version.
As per your comment of rebuilding each project, this is a classic sign of the projects not being checked to be built on run and why you have to do it manually.
In the iOS Simulator (on the Mac) click the "Reset Contents and Settings" entry the main menu.
Well this worked with my Android project suffering from the same issue:
Right click on Android project then select "Properties".
Select "Android Options" then "Packaging".
Un-check the "Use Shared Runtime" options.
then it worked normally
I had a similar problem (though on an Android emulator).
What didn't work for me:
restarting the computer
restarting Visual Studio
deleting bin / obj folders
going into Configuration Manager (Debug / Release / Configuration Manager) and ticking everything there - everything was ticked
changing the version of the app in the manifest
What worked for me?
Uninstalling the app from the emulator and then running Debug again.
It was an Android emulator, so I uninstalled by clicking on the app icon and holidng for long, and then dragging it to "Uninstall App". On an iOS simulator it should be similar.
In my case I had to enable all architectures:
Android project properties
Andrid Oprions
Section Anvanced Tab
Select all architectures and rebuild
I still have this problem with iOS simulators. My solution:
Unload the iOS project
Reload the iOS project
Build as usual
I do the above when I change simulator device.

Reduce Blackberry Simulator load time

Is there any way to reduce Blackberry simulator load time. One way I found was View->Turn Graphics Acceleration->off . We have to close the simulator every time we make a change in code. Is there any way to bypass this closing and restarting problem of BB simulators?
The solution is to use a newer SDK (e.g. version 7) for development which does not require restarting the simulator every time while debugging. Then when you are ready just compile it to a target platform -- you can even do that from command line, of course always test it on the device before deployment.

Could not load BlackBerry webwork+PhoneGap application in BlackBerry 6.0 simulator

I have my application ready on BlackBerry webwork and PhoneGap.
I successfully run it using eclipse plug-in for BB 5.0 and BB 6.0.
But when I tried to wipe user data from BB 6.0 and tried to directly load .cod file from StandardInstall directory, application does not open. It just display splash screen.
I get error like
"ApplicationRegistry.wait For (0x3bc6259193b4b87c) timeout"
I am wondering that is it a simulator bug or something?
Notes:
I tested both singed and unsigned application.
Above mentioned method works on any simulator for BB 5.0
I also created normal BlackBerry application (without phoneGap and webwork) and I was able to load .cod file in BB 6.0.
I'd also like to present my question regarding difference between OTAInstall and StandardInstall. Check here.
Simulator information: Torch 9800 (6.0.0.227)
There was a simulator cleaning up issue.
I was using Reset option to clean simulator. But this will not work.
You need to run clean.bat file from simpack directory.
My path was:
D:\Eclipse\plugins\net.rim.browser.tools.wcpc_2.0.0.201103231828-18\wcpc\simpack\6.0.0.227
Use a Blackberry specific phonegap.js file. This will clear all the popup related issues.

Installing built iOS App in simulator from terminal?

We build an app through the terminal with xcodebuild and also want to install it in the simulator using the terminal. Any advice on this? Seems tricky.
(Any reason you're just not using the default xcode way?)
Heavy mate. I would bet there's an easy way to do it (I'd imagine)
You could make a simple ssh client in Objective-C and run it on the simulator then simply copy the necessary files with said program. Since it's not going through Apple, you'll probably have a pretty easy time with it.
Oh and it went unanswered here
The forum thread, http://forums.macrumors.com/showthread.php?t=547557, seems to have advice which works:
Look inside your ~/Library/Application
Support/iPhone
Simulator/User/Applications/ directory
and see what happens inside this
directory when you install and run
apps using XCode, and also when you
delete apps using the Simulator.
You can run the Simulator by itself
(without starting XCode).
If you start the Simulator, delete an
app, quit the Simulator, put back
copies of the files that were deleted
from the support directory, and
restart the Simulator, the app will
reappear in the Simulator.

Blackberry - app not showing up on the simulator

I am using the Blackberry SDK 4.6 eclipse plugin to create applications. My applications were running fine till some time back when testing on the simulator. Then I ran the clear.bat to remove all applications I had added.
Now whenever I try to compile and run my app from eclipse, it does not show up in the simulator. I tried creating the whole project again but still the same result.
Try using the /clear-flash command in the batch file that launches the simulator, this will reset the sim back to it's 'default' mode.
Are the .cod files being put into the same folder as the simulator? Is the simulator opening up when you run from Eclipse?

Resources