Blackberry development on Windows XP - blackberry

I have installed Blackberry JDE on Windows XP. And I am trying to run the 'samples.jdw' on simulator on Blackberry JDE. So I do 'Debug->Go' But when I do that
I get this popup windows saying 'Cannot find file' net_rim_bis_client__ru.debug'.
And there is 'Search...', 'Brwose...', 'Cancel', 'Don't ask this again' button.
So how can I get the sample project run on simulator in Blackberry JDE?
Thank you.

If you don't need the debugger, then you can (1) build the project in JDE, (2) start the simulator (Windows "Start" > "Programs" > "Research In Motions" > "BlackBerry JDE x.x.x" > "Device Simulator") and (3) when it is ready just load the built .cod file via simulator menu item "File" > "Load Java Programm.." (at least this is the name of the menu item on my Storm 9530 simulator). This adds the app to the simulator (the app icon appears on the simulator).

It appears that - depending on exactly which file(s) it says are missing - you can safely ignore these messages (click on the 'do not show this message again') button.
I got messages about a whole bunch of missing files, and have ignored them without any apparent problems:
net_rim_bis_client__ru
net_rim_bis_client__ru-1
net_rim_bis_client__cs
net_rim_bis_client__cs-1
net_rim_bis_client__el
net_rim_bis_client__el-1
net_rim_bis_client__pl
net_rim_bis_client__pl-1
net_rim_bis_client__it
net_rim_bis_client__it-1
... and so on. They appear to be related to localisation, so perhaps if I wanted to set the simulator language to Russian I might run into problems.
Anyway, it appears we are not alone in having this problem (see also the response immediately following that post). Maybe one day RIM will actually release some dev tools that work properly, but I'm not holding my breath...

Related

Xcode Instruments Unknown Addresses

I'm using the Xcode Instruments tool to Time Profile my application. Unfortunately, no matter how much I interact with the application while recording, I don't see a comprehensive break down of function calls in the profile. Instead, I see these <Unknown Address> [inlined] messages.
Running on Simulated iPhone on Mac:
Running on actual iPhone:
I verified that under the Xcode build options DWARF with dSYM File is selected for both Debug and Release and that the file exists. I'm using the IOS deployment target that matches the current version I have running on my iPhone and I have the latest (13.2.1) Xcode Command Line Tools selected.
I also took a look in Instruments > File > Symbols and noticed that there was a perms issue with what seems to be the CLT - not sure if this is at all related?
When I select the app name below Unknown, there isn't a dSYM path selected. However, every time I select it /Users/username/Library/Developer/Xcode/DerivedData/AppName-<sequence of characters>/Build/Products/Debug-iphoneos/AppName.app.dSYM I see a message "1 library will be symbolicated". However, this path doesn't seem to work because there is no behavior change in instruments AND it never sticks - it shows as empty if I open the window again.
Any suggestions would be greatly appreciated!

Form not showing up in my Emulator

I have a mac pro. I installed xamarin studio and everything I needed for android development on mac. The first time I created a project I ran it and everything works. I was able to click on a button which counted my number of clicks kind of like a default.
I decided to follow the Android quick start tutorial on Xamarin and when I got done creating the project and ran it nothing showed in my emulator. The controls I created did not show up. All I got on top of the screen was "Deployment Completed" . No error messages either. How do I trouble shoot this? I want to be able to see the screen I created in the Emulator and click on various buttons.
Now I just got an error message and it can be found below.
/Library/Frameworks/Mono.framework/External/xbuild/Xamarin/Android/Xamarin.Android.Common.targets: Warning: No -tsa or -tsacert is provided and this jar is not timestamped. Without a timestamp, users may not be able to validate this jar after the signer certificate's expiration date (2047-01-01) or after any future revocation date. (Phoneword)
My guess is that your Android project did not actually get built either because you have selected the wrong configuration and platform pair or because the settings for the configuration and platform pair are not correct.
When building and running on Android, you want to make sure you change your Platform to AnyCPU and then either choose Debug or Release for your Configuration depending on what environment you are targeting. For building and running on iOS, you would just change the Platform to iPhone Simulator or iPhone.
See image below for how to access these settings (just click where the red boxes are circled):
In Xamarin Studio, with your project open:
Click Project -> Solution Options
Choose the Configurations tab
Choose the Configuration Mappings tab
Now change the Configuration dropdown to Debug and the Platform to AnyCPU
Make sure that the Build checkbox is checked next to your shared project (most likely the one at the top) and that the Build checkbox is checked next to your Android project
Now click OK, make sure you have the correct Configuration and Platform are selected
Rebuild the solution and try to run it again
*Edit: After talk in the comments, the emulator must be unlocked to actually view the running app. To unlock the emulator:
Click and hold down on the lock icon at the bottom of your emulator screen
Drag the mouse up to the top of the screen and release the click

'Session Ended' when lauching app from Delphi to iOS Simulator

I'm trying to deploy a multi-platform application (written in Delphi XE7 + Firemonkey) to iOS Simulator, through these parameters:
Delphi XE7
OSX 10.8 Mountain Lion
XCode 5.1.1
Command Line Tools
PAServer 15.0 (iOS SDK 7.1 - also tested with 6.1)
My Application needs to work in Windows, Android, iOS and OSX. Working already for all but iOS, including OSX which I compile to using the same setup, with no problems.
I created a connection profile to my PAServer, using a password, and this profile works OK both compiling to OSX and when compiling a hello-world-ish application for iOS, just with a button or two.
As for my app, I can compile and build it for iOS without a problem, but when I try to run it in iOS-Simulator, it compiles, deploys, and when launching, it fails, returning an error:
Unable to launch process on '192.168.25.37' using the parameters from the 'iOS' profile.
The following error was returned: 'Session Ended'
This is my first app for iOS, so I'm swimming in strange waters here.
It has no external libraries, except of course for the ones Delphi itself might add when compiling. I myself did not, and the app has just forms, and accesses a text file in its sandbox folder, and a mysql server via UniDac (direct mode, no dll's).
I tried to get to the bottom of it, commenting out sensible code in my app, namely everything that was iOS specific, but that amounted to nothing.
I then created a new app, just a button and a ShowMessage on its handler and it worked.
Next step, I started trying out my app units on this simpler app. The first one I tried was a unit I have for a custom component (a TRectangle with a TPanel, 3x TImage, a TLabel and a TCheckbox inside), with another class with a Generics TObjectList of the component). I just added this unit, without instantiating any class, and it failed, reporting an 'unknown error'.
So I removed the unit from the project to double check: Again it fails, with the same button and showmessage that worked before.
I've installed then the SDK 7.1, but failed as well.
I've been looking through the web trying to make some sense out of it, and have found several similar cases, but none that could actually help me:
Delphi FireMonkey iOS App: Error while Deploying to iPhone Simulator 8.1
On this case, there's a problem with PAServer and there's a fix for it, but it refers for SDK 8.1 and XCode 6+
Unable to install and run iOS app on Simulator from command line - Simulator of iOS 6.1 Xcode 5 on mavericks
I couldn't install ios-sim via the refered way, most probably because I have zero experience with OSX.
Still, I cloned it from GitHub and managed to install it via command line and XCodeBuild with some help from internet, but when I tried to run my app, ios-sim says it needs at least XCode 6, which I don't have (OSX 10.8 here, I believe Xcode 6 needs at least 10.9).
After that, I installed another, iPhoneSim, and strangelly, after that ios-sim no longer questions for Xcode6. Still, it fails to start my app (even a freshly created hello-world-ish that works when run via Delphi), stating:
DEBUG] Failed to find class DTiPhoneSimulatorSystemRoot at runtime.
Even tried installing WaxSim, but this one failed to install.
I did not however tried compiling it for a iDevice, because for that I need to subscribe Apple Developer program, and I was hoping to do that only after making sure everything was working OK. Plus, I', not sure it would make a difference.
Has anyone experienced this 'Session Ended' problem, and if so, do you know of any reason and fix.
Thank you
After a few days, I found out what the problem was, so I'll post the solution here to help others who might have the same problem.
Go to Project --> Project Options --> Version Info
Under de iOS Simulator configuration, Delphi IDE (XE7) automatically inserted the following key and value:
CFBundleVersion = 1.0.0
As it turns out, there are several other tweaks needed for an iOS project:
Here are the keys found in Embarcaderos iOS demo app "Location", which solved my problem once I inserted them in my project:
CFBundleName = $(ModuleName)
CFBundleDevelopmentRegion = en
CFBundleDisplayName = $(ModuleName)
CFBundleIdentifier = $(ModuleName)
CFBundleInfoDictionaryVersion = 7.1
CFBundlePackageType = APPL
CFBundleSignature = ????
LSRequiresIPhoneOS = true
CFBundleAllowMixedLocalizations = YES
CFBundleExecutable = $(ModuleName)
UIDeviceFamily = iPad & iPhone
CFBundleResourceSpecification = ResourceRules.plist
NSLocationAlwaysUsageDescription = The reason for accessing the location information of the user
NSLocationWhenInUseUsageDescription = The reason for accessing the location information of the user
FMLocalNotificationPermission = false
There is one special key, which I believe it's the main reason for the 'Session Ended' error: UIDeviceFamily
This key has 3 options (instead of accepting any string value):
- iPhone
- iPad
- iPhone & iPad
Without this, iOS simulator doesn't know which type of app it is, UI wise, so it doesn't launch.
You need to add the key with the respective key name, and then choose the UI type using the respective ComboBox.
Also missing in the project is in:
Project -> Project Options -> Application
There is a list, both for iPhone and iPad, with the paths to the default icons, in several sizes, which is not correctly filled when creating a new Project.
So, you can either use your own icons and images, or use the defaults:
iPhone:
Application Icon 57x57: $(BDS)\bin\Artwork\iOS\iPhone\FM_ApplicationIcon_57x57.png
Application Icon 60x60: $(BDS)\bin\Artwork\iOS\iPhone\FM_ApplicationIcon_60x60.png
Application Icon 87x87: $(BDS)\bin\Artwork\iOS\iPhone\FM_ApplicationIcon_87x87.png
Application Icon 114x114: $(BDS)\bin\Artwork\iOS\iPhone\FM_ApplicationIcon_114x114.png
Application Icon 120x120: $(BDS)\bin\Artwork\iOS\iPhone\FM_ApplicationIcon_120x120.png
Application Icon 180x180: $(BDS)\bin\Artwork\iOS\iPhone\FM_ApplicationIcon_180x180.png
Launch Image 320x480: $(BDS)\bin\Artwork\iOS\iPhone\FM_LaunchImage_320x480.png
Launch Image 640x960: $(BDS)\bin\Artwork\iOS\iPhone\FM_LaunchImage_640x960.png
Launch Image 640x1136: $(BDS)\bin\Artwork\iOS\iPhone\FM_LaunchImage_640x1136.png
Launch Image 750x1334: $(BDS)\bin\Artwork\iOS\iPhone\FM_LaunchImage_750x1334.png
Launch Image 1242x2208: $(BDS)\bin\Artwork\iOS\iPhone\FM_LaunchImage_1242x2208.png
Launch Image 2208x1242: $(BDS)\bin\Artwork\iOS\iPhone\FM_LaunchImage_2208x1242.png
Spotlight Search Icon 29x29: $(BDS)\bin\Artwork\iOS\iPhone\FM_SpotlightSearchIcon_29x29.png
Spotlight Search Icon 40x40: $(BDS)\bin\Artwork\iOS\iPhone\FM_SpotlightSearchIcon_40x40.png
Spotlight Search Icon 58x58: $(BDS)\bin\Artwork\iOS\iPhone\FM_SpotlightSearchIcon_58x58.png
Spotlight Search Icon 80x80: $(BDS)\bin\Artwork\iOS\iPhone\FM_SpotlightSearchIcon_80x80.png
iPad:
Application Icon 72x72: $(BDS)\bin\Artwork\iOS\iPad\FM_ApplicationIcon_72x72.png
Application Icon 76x76: $(BDS)\bin\Artwork\iOS\iPad\FM_ApplicationIcon_76x76.png
Application Icon 144x144: $(BDS)\bin\Artwork\iOS\iPad\FM_ApplicationIcon_144x144.png
Application Icon 152x152: $(BDS)\bin\Artwork\iOS\iPad\FM_ApplicationIcon_152x152.png
Launch Image 768x1004: $(BDS)\bin\Artwork\iOS\iPad\FM_LaunchImagePortrait_768x1004.png
Launch Image 768x1024: $(BDS)\bin\Artwork\iOS\iPad\FM_LaunchImagePortrait_768x1024.png
Launch Image 1024x748: $(BDS)\bin\Artwork\iOS\iPad\FM_LaunchImageLandscape_1024x748.png
Launch Image 1024x768: $(BDS)\bin\Artwork\iOS\iPad\FM_LaunchImageLandscape_1024x768.png
Launch Image 1536x2008: $(BDS)\bin\Artwork\iOS\iPad\FM_LaunchImagePortrait_1536x2008.png
Launch Image 1536x2048: $(BDS)\bin\Artwork\iOS\iPad\FM_LaunchImagePortrait_1536x2048.png
Launch Image 2048x1496: $(BDS)\bin\Artwork\iOS\iPad\FM_LaunchImageLandscape_2048x1496.png
Launch Image 2048x1536: $(BDS)\bin\Artwork\iOS\iPad\FM_LaunchImageLandscape_2048x1536.png
Spotlight Search Icon 40x40: $(BDS)\bin\Artwork\iOS\iPad\FM_SpotlightSearchIcon_40x40.png
Spotlight Search Icon 50x50: $(BDS)\bin\Artwork\iOS\iPad\FM_SpotlightSearchIcon_50x50.png
Spotlight Search Icon 80x80: $(BDS)\bin\Artwork\iOS\iPad\FM_SpotlightSearchIcon_80x80.png
Spotlight Search Icon 100x100: $(BDS)\bin\Artwork\iOS\iPad\FM_SpotlightSearchIcon_100x100.png
Setting Icon 29x29: $(BDS)\bin\Artwork\iOS\iPad\FM_SettingIcon_29x29.png
Setting Icon 58x58: $(BDS)\bin\Artwork\iOS\iPad\FM_SettingIcon_58x58.png
We had the same error message, although with a slighty different environment (Delphi XE8 and Yosemite).
In our case, there were parentheses in the name of the connection.
We found this out by putting PAServer in verbose mode, using the "v" command, and repeating the commands we saw in a separate terminal.
Editing the parentheses out of the connection name solved the problem for us.

how to Run two BlackBerry simulators in windows eclipse?

How to Run two instance of BlackBerry simulator in windows eclipse?
The documentation regarding developing with BlackBerry Messenger indicates that you can run two simulators at once, at least with the simulators that come bundled with the BBM SDK.
You cannot. If you try, you will get an error message saying only one simulator can run at a time.
What you need to do is:
Install the blackberry eclipse plugins twice and make two
workspace of each eclipse.
Run the two simulators in each eclipse and error like "could not
open port 19780 and it is use by another program....." will pop
out in one of your simulator.
So made the changes in pin,
data-port values in .bat files, rimpublic.property files inside
MDS and fledge-settings.conf in one of your simulator... but this
changes will not be reflected on your eclipse.
So what you need to do is, when you click the debug configuration from your
eclipse, you will see the simulator option there. So, click the simulator and change the PIN value, whatever you have made the changes in .bat files.. and just after that in the simulator you will again find the option of network, there unselect the disable registration button...once all this changes is made click apply and restart your eclipse... this will surely solved your problem

Blackberry 9800 Simulator Crashing When Launching Browser

The Blackberry 9800 simulator is crashing when launching the browser, throwing
JVM Error 104: Uncaught
IllegalStateException.
This is a clean install of the simulator with no 3rd party applications installed to it. I strictly wanted to use it for testing web applications. All other applications on the device seem to work without error.
I managed to get it working.
Exit the Simulator (if running)
Go to c:\program files\Research In
Motion
Right click BlackBerry Smartphone
Simulators 6.0.0
Click Properties
Select the Security Tab
Click The Edit button
Click the Add... button
Add your user account to with "Full
control" checked
Click the OK button
Launch the simulator and all should be well.
This solution didn't work for me, but reinstalling as described here did.
http://supportforums.blackberry.com/t5/Web-Development/9800-Simulator-Browser-crashes-JVM-Error-104/m-p/594666
right click, and launch like administrator (W7)

Resources