BlackBerry Simulator not reflecting code changes - needs restart for every change - blackberry

I am using BlackBerry SDK 5.0.0.36 on eclipse
whenever i am doing any changes i need to restart the simulator
i want to run simulator only once and dont wanna restart it again n again for little changes
i refer to this thread in stackoverflow.com -> "View changes without restarting Blackberry simulator?"
i follow the given procedure in above thread but still my simulator not making it
i also tried it in BlackBerry SDK 6.0 and 7.1 . . .but i am still fighting with same problem

As Mister Smith says, this functionality is not highly reliable. Sometimes it works, and sometimes not.
However, one fixable problem that I encounter somewhat often is that permissions on the JDE plugin folders get restricted so that the BlackBerry simulator cannot write out the proper files to perform hot swapping.
I can often fix this in Windows explorer by going to the root folder for Eclipse (you could probably just go to the JDE plugin folder, if you're concerned about opening up permissions too much). In Windows Explorer, right-click and select Properties. I then uncheck the Read-only checkbox. Then, use the Security tab and make sure that your user account has Full control for that directory, and all of its subdirectories.
I will usually also just transfer ownership of the entire Eclipse directory tree to my user account (e.g. HOSTNAME\username). Do that with the Advanced button on the Security tab.
Also, have a look at this question/answer and this BlackBerry support forum thread on the topic of hot swap file permissions

Related

Windows Defender SmartScreen and electron app

I have developed a very simple electron app, which I then packaged using "electron-packager".
I zipped up the application and sent it to my client. When this client runs the application, he gets the "Windows protected your PC" window/warning with "Windows Defender SmartScreen prevented an unrecognized app from starting. Running this app might put your PC at risk.
App: AppName.exe
Publisher: Unknown publisher
Along with the "Run anyway" and "Don't run" buttons.
The app runs fine when the user clicks on "Run anyway", but understandably he would like to get rid of this warning (and at the very least show the actual Publisher).
I know about the code-signing certs, so there is no need to go there...
(IMPORTANT NOTE: I haven't asked him to look at the properties of the file to see if Security indicates "This file came from another computer and might be blocked to help protect this computer.". I am going to check that tomorrow and hopefully it just needs to be "Unblocked".)
What I am wondering is, why don't I get this same warning when I run the application on my PC? (We are both running Windows 10.) I have cranked my UAC all the way up to "Always Notify" and I have tried setting "Check apps and files" and "SmartScreen for Microsoft Edge" to "Warn" and even "Block". Still, the application always starts with NO errors or warnings. If I could at least reproduce what he is seeing, I would at least know if/when the code-signing works.
(To be clear, I'm not using an "installer". The client doesn't want one. And, as I said, this is a very SIMPLE application/utility. They want to be able to copy the zip file, unzip the contents and run the app..)
Any help is much appreciated!
Yes. The issue is, that when files are received from the internet, there is a download flag set. This is depending on certain conditions.
I've experienced, that files from local network addresses don't get this flag.
You can find the flag in the File Properties dialog.
When this flag is set, the SmartScreen scans the file and checks, if it can be trusted or not. This is depending on the reputation of the signature used to sign the executable.
Reputation for a certificate is established automatically. If you cannot wait, then you need to use an EV cert.
hope this works for you.
I use "electron-builder" to build my application and it exports a .exe file then I archive this file by WinRAR app and set it for download.
when the user downloads this file and extracts this file it automatically removes the downloaded flag from the .exe file and the user will not see the warning anymore this solution worked for me.
The solution to this is for the client to "unblock" the zip file before extracting. (Or, I suppose extract it, then unblock the exe....) To reproduce the problem, I just emailed it to myself. :)

Determine iOS application platform

I have an application I've been handed to test, and I'm — shall we say — less than impressed?
I believe the company that built the application for my client didn't build it as an iOS native application; my gut feel is they leveraged one of the multi-target platforms because that's what they're comfortable with. The application's usability is particularly poor, and it just doesn't behave the way an iOS application should.
How can I tell whether this application is native or built on some OS-agnostic platform? Any big give-aways that can tell me?
FWIW, the iPad is the only target platform for this device. It won't need to run anywhere else.
Are you saying that it doesn't have the look and feel of a regular iOS app? It's possible that it has been developed in AIR, HTML5, etc. I don't know if there is much way of doing this without jailbreaking the device.
You could, of course, ask around or post a screenshot and see what others think.
Get the binary out of the device, using softs like DiskAid (free for that part - no jailbreak required), and study it. You may get important infos through a disassembler, such as Hopper, which has support for ARM.
If you can't read assembly, study the application's resources. It may also give you some hints. Again, a software like DiskAid will allow that.
While "some OS-agnostic platform" is a bit broad, there is an easy way to tell if an app was made with PhoneGap, arguably one of the most popular OS-agnostic platforms.
Copy the .ipa file you've been sent (or find it on your filesystem
and copy it).
Rename the copy WhatEverTheAppNameIs.zip.
Extract the zipped folder and open it.
Open the folder named "Payload" (If it isn't already).
Right-click on BlahBlah.app and select "Show Package Contents".
Inspect the bundle.
Check for the presence of a www folder. If it's contents are sizable (compared with the packages contents in general) there's a good chance the whole app was made with PhoneGap.
It's also illuminating to click on the index.html file in the www folder just to see how much of the app runs in desktop Safari.
You may also discover other evidence of OS-agnostic platforms by examining the bundle further.

XNA 4.0 ClickOnce game does not run after installation

Okay, I have been looking all over to solve this problem before I actually broke down and decided to finally ask for my psecific problem. I am using ClickOnce installation and when I use the setup.exe to install nothing runs, not even on my personal computer that I know has all of the proper libraries and such. I'm not sure what I am doing wrong so it is difficult to explain the problem.
I have included dotNetFramework4.0 client x86 x64 , xna redistributable 4.0 and windows installer 3.1 along with my game and I have it set to install all of that with setup , also I have it set to download prereqs from same location as application. I've tried it on three separate computers , one that does not have XNA or VS C# installed and the same problem occurs.
Here is the problem , after I install the game nothing runs, I try clicking on the ClickOnce application file (the one with my game's icon image) and again nothing happens. The thing that really bugs me is that there isn't any errors or crashes or anything , it's almost like clicking on the desktop screen. (I looked at the properties of the "shortcut" that was installed with the game and the file size of the shortcut is like 300 bytes. Isn't that really small? I was thinking maybe there is a problem with a startup executable? I'm not sure though.)
I've tried tweaking some stuff in the Publish section of my project , such as un-checking the box that says "use .deploy extension files" (I don't know why, I've been grasping at straws here) I've been looking into some other installers such as NSIS but I don't know how to compile a list of files to include in other installers and I feel like that won't solve the problem anyway because I've gotten ClickOnce to work with me before.
On one computer there was an error report that said something about 'deployment and application do not have matching security zones.'
Game.application resulted in exception. Following failure messages were detected:
+ Deployment and application do not have matching security zones.
It's getting late so if I need to provide more information let me know.
ClickOnce can be a fickle thing. There are times that I've had errors occur that could only be solved by recreating an entire Windows user profile. Because there are so many different options for ClickOnce, it's going to be hard for me to diagnose your exact issue, so I can only offer what options I used to successfully install via ClickOnce.
Publishing Folder: local folder
Installation Folder URL: blank
Install Mode: offline
Application Files
Make sure the Publish Status of your game files is set to Include (Auto)
Make sure the Publish Status of the XNA libraries is set to Prerequisite (Auto)
Click Prerequisites
Microsoft .NET Framework 4 Client Profile
Microsoft XNA Framework Redistributable 4.0
Windows Installer 3.1
Do not check for updates
Everything else default under Options (publisher/suite name shouldn't affect anything)
Specify the version number
Publish Now
Install the game through the setup.exe provided in the publish location. I always distribute every file that is publishes. However, you can clean up old versions in the "Application Files" folder if you don't want the history to be distributed.
You can double check the "Application Files" folder to see if your version got published correctly (look at the files that were deployed and see if they match your project contents).

IDAPI , BdeAdmin and Windows 7

After many months of postponing it, this week, I finally started using a new Windows 7 Professional PC for actual development (which is 90% still done in Delphi 7 with some of these programs still using the Borland IDAPI to access Paradox files). The previous development pc was still an XP-one.
Every thing works except for one thing: somehow the settings of the IDAPI and BdeAdmin configuration files are messed up or they are read/written in different locations. To be more precise, it looks like two configuration files are active.
It must have something to do with rights or settings being read/written in the wrong folder or registry setting, but after searching for it for a couple of hours, I give up.
Anyone had any problems with this, before ? And if so, hopefully, has any one solved this problem ?
Thx for any thoughts/solutions ...
My guess is it has something to do with the fact that Vista and Windows 7 don't allow programs to change files under the C:\Program Files folder. They create a copy of those changed files in a virtual store, the process is known as virtualization. The copies end up in the hidden appdata folder of the user account and can be found in the Local\VirtualStore\Program Files folder. The structure in that folder reflects the one in the actual Program Files folder.
Programs that access their files in the Program Files folder using a "hardcoded" path, will always get the original - unchanged - file contents.
Solution: running the apps in a virtual XP system or upgrading the apps is probably your best bet.
You could try to run the apps elevated. That is: right click them and choose Run as Administrator. Please note that it isn't enough to be logged in as an administrator. Even administrators run all processes unelevated by default. Instead of right-clicking, you can also create a shortcut and set the Run as administrator for the shortcut - the checkbox for this is on the compatibility tab of the properties dialog. No guarantees though that this will alleviate the problem.
Since IIRC D7 setup allows you to configure paths in multiple ways, maybe simply do a reinstall outside "program files"?
Afaik this solves several vista/w7 problems.

application wont start or load in blackberry simulator

I'm developing an application on two different machines (home and work) and while the home one seems to run just fine, the work one is, for lack of a better word, possessed. It has been exhibiting the following issues:
When loading the application, it will start at the simulator's main screen instead of starting the application at random intervals. You can start the application and have it work fine, then close the simulator, reload, and have the same codebase not load.
Going to applications doesn't show the application itself, in fact it never does.
Trying to load the applications cod file (File->load java program) never works. Tried the steps in this thread, with unreliable results.
Extremely small changes, such as modifying the value of a width variable by one, commenting out a function such as makeMenu or adding a button will cause code to no longer work, with no errors shown by the IDE.
Using clear.bat with sometimes work, sometimes not. Same with manually removing all files with the name of the project.
reinstalling the eclipse environment and the blackberry plugin did nothing more then burn off an hour.
having "load on startup" in the blackberry_app_descriptor.xml file is set.
Both systems are using Eclipse 3.5.1, BB plugin for eclipse 1.1 beta, Java 4.5 with the 8300 simulator. THe only difference that I am seeing is the operating system between the two systems. The work one being XP Sp3, home being vista. THe vista one isn't perfect, but I can test variable changes without flipping a coin to see if the app will even load or not.
I've tried the solutions that were similar on this forum, such as this one, but it looked to be that those solutions are dated as none of the options for the steps existed in my eclipse install.
So has anyone ran into such baffling behavior, and can it be fixed? Anything that I might have missed that could be tried?
I've been seeing this behavior with the new 1.1 plugin, the application doesn't load on startup and the FIle->load java program doesn't help. For me, the solution was I have to run a clean build every time, that is the eclipse clean and build instead of just build, not the clean.bat... Hope this helps!
Try clearing resources that have improper naming structure in your projects stuff with spaces or special character in the name of the file.
It took me two days to figure out.
One solution i got regarding your problem.
As I See Please run the application first time as Run as blackberry simulator
that is got start and here pick up run and then Run as Blackberry simulator

Resources