Error starting application. Module ... not found - blackberry

I am developing an application for OS 5.0 and above. I am receiving an error when running it on OS 4.6 and I can't enter the application.
What I wanna do is make a try catch to get the error and start the application on OS 4.6 even if a module is not found. For example I want to launch a Main Screen where I want to notify the user to download the new OS version in order to use the application.
Any hint about this topic? Thanks in advance

Because of your import statements you won't be able to do that. You'll need to create a separate version for pre-5.0 OSes.

Another option would be to write a starter application than will run on pre-5.0 OSes that checks the current OS level and launches your application if the OS is OK, or displays your request that they upgrade.
The best solution though is to inform your user base what device/OS combinations you support. If you are doing the installation OTA is is quite easy to detect the OS version from the UserAgent string and act accordingly.

Related

Issues with Xcode & Realm browser

So i've been trying to use Realm browser with Xcode so that it's easier for me to see and test my objects. But i seem to be running into a couple of problems with this.
The first issue is that with Realm Browser i'm not able to actually open up my files location using the dropdown option 'open common locations' so i can open it via the iPhone simulator. Even when i do open the file using alternative methods i keep on getting the following error in the console.
UserInfo = {
Error Code=8,
NSLocalizedDescription=Realm file is currently open in another process which cannot share access with this process. All processes sharing a single file must be the same architecture. For sharing files between the Realm Browser and an iOS simulator, this means that you must use a 64-bit simulator.
}
Which is weird because my Macbook is 64 bit since it's the Mid 2013 Macbook Air could anyone help solve this problem at all? Since it would make development so much easier if i could just use the browser application.
So i figured this out and realised that you have to be running the app using an iPhone 5s or higher
You are correct. Realm cannot be opened at the same time between processes of different architectures. iPhone 5 or earlier simulator is running as 32-bit process.

Blackberry WebWorks + Ripple, whats the easiest way to distribute app?

Currently I use Ripple "Package and Sign" option, and then use Blackberry Desktop Manager (with my blackberry connected to PC via USB) to import then apply the app. What annoys me is the whole process takes min 10mins sometimes 30mins all up.
I try to skip the "Sign" option, ie use "Package" only but when running the app from the device it gives me this error: "Error starting X: Module 'X' attempts to access a secure API".
Questions:
How are you installing the app on blackberry during Dev/Test?
How are you distributing the app for PROD release?
I have heard we can distribute via Wi-Fi or just sending someone a link to download the app, but cant really find much info on it. Any help?
You have to sign Webworks apps that you intend to use on the phone. Test as much as you can in the simulator, since it has the fastest turn around time between compiling and running the application.
Appworld is probably going to be your easiest distribution method if you intend on having users buy your app.
If you want to use the internet/WiFi option, you'll need to have a webserver/site you can upload all the *.cod and *.jad files that are built when you package the app. Then point the people downloading the app to the .jad file and their phone will try to install it for them.

Application with plugins is possible in iOS or not?

I just want to know that can i make an application which have some plugins in it, when user install that application then some plugins also get installed? for example I make a plugin which have some smilies and when i open Facebook application all that smilies get available to me in that application and in my application also.
Still what i studied is that you cannot make any thing for iphone that wants to make change or access OS level. SO this in not possible for iOS. But this is some how possible for JailBreak

Deleting an Application from 8830

We have developed an application for 8830 Device and its working fine.
The problem that we are facing now is that, we are unable to delete the application from the device.
We selected the application, pressed the menu button, but dont find any delete option.
We went to the applications list, through advanced options, but surprisingly we dont see our application in that that applications list(By Deploying the same application in higher devices such as 9630 and 9550,9800) we see a delete option, by pressing menu and also see our application in the options->application list.
We went to modules, and identified the modules of the application, but there also we were not able to find the delete option in it.
We also tried using the blackberry desktop software too, but in vain, we dont find our application in that list too
** The current device we are using is not configured with any BES(We are registered with the BIS) And moreover, we are able to delete the yahoo messenger, gtalk, twitter from the mobile except our application(It just behaves like some shortcut).
Do we need to add some extra lines of code in any class so that it gets identified as an application.Kindly help on this.
Thanks in advance,
Dheeraj Jami
Usually when an application installed via BB Desktop Manager + .alx file or wirelessly (Browser + jad file) the application is listed in the applications list and can be deleted by end-user without any problems.
But if the application installed via javaloader or cod file created automatically via RIM SDK then the application won't be listed in the application list.
The working way to delete unwanted cod file(s) is using javaloader.exe that comes with JDE distribution package.
Connect your device to the desktop computer via usb-cable and type the command in command line, when you are in folder where javaloader.exe located:
javaloader -usb erase -f unwantedfile.cod
and press Enter
Do we need to add some extra lines of code in any class so that it gets identified as an application.
No, you don't. From my experience it just happens sometimes with BlackBerries. In this case the only way to get rid of it is to pull the battery out of the device. This action resets the device to its factory state (all apps installed by user will be lost).

how to debug java app in blackberry

I am developing a bluetooth application for blackberry. I am getting some BluetoothStateException's whil running the app on the phone. I am wondering if there is any way to debug th application on the phone?
Thanks.
UDPATE: There is an option in JDE I found to debug on device, but it keeps asking me to install signing keys.But I have not used any BB API's AFAIK
You cant install a BB app on handset without signing it. Get a developer account on BlackBerry developer website, and you should be able to set up signing, it is almost trivial to do so.
You shouldn't have to sign if you haven't used the BlackBerry APIs that require signing keys. In particular, the basic UiApplication class and the BluetoothStateException don't require the keys.
Having said that, it sounds like you used a protected API in there somewhere (they're really all over the place, the PersistentStore for example, or the Display class in the system package). You can enable warnings within Eclipse for when you use protected APIs. Under Window->Preferences->BlackBerry Java Plug-In, check the Warnings sub-item and make sure all 3 checkboxes are unchecked. Then look at your Eclipse warnings/error view.
Also, I agree with #omermuhammed, it's really easy to get signing keys.

Resources