In my application, I want to to add an item to the BlackBerry menu items and this item can launch my simple application.
how can I do that?
I am using blackberry JDE 7.1.
Import the Blackberry sample "MenuDemo" from Blackberry samples; Then you can understand;
To Import Blackberry Samples; Go to
File-->Import-->Blackberry-->ImportBlackberrySamples-->DeselectAll-->and select the MenuDemo from samples; and click finish;(you can change the version at "Use a project Specific JRE");
The simplest way is to extend UiApplication for your main class and make sure your development environment is compiling your application as a GUI app, then there will be an Icon placed on the home screen which will launch your app.
Related
I created an emulator with VSCode for Flutter programming purposes, everything works great except the fact that i cannot use my own keyboard to write on TextFields, i'm forced to use the embbed keyboard of the android.
How do i allow key input from my keyboard?
You need to explicitly specify that option on the emulated device's settings if you've created the emulator using flutter with VSCode.
Open Android Studio.
Hover over the Tools section on the top bar and click AVD Manager
Find your emulated device on the list and click to pen icon to edit device specific settings.
Click to Show Advanced Settings.
Scroll down and make sure Enable keyboard input is ticked.
There is also pictured version of these steps.
I have used an old emulator for API Level 23, which does not take keyboard input for my apk. So I have created new emulator for API Level 29, and then it works. Following is the step to install new emulator.
Open "Android Virtual Device Manager"
Create new Virtual Device.
When you select a system image, please choose and download the last version(API Level29) on "Virtual Device Configuration" window
I have an application that I would like to test in another language. Using Xcode is there a way to test the application in another language without changing my language preferences on my iPhone?
It is very simple. In Xcode go to menu "Product" and Alt + click on "Run..." menu item.
This will open schemes. On "Run" scheme open "Options" tab. Select "Application Language" and Run.
Well, not really I guess. The only other way is to implement the whole language choosing possibility by yourself, i.e. give the user (or just yourself as developer) the possibility to change the language manually. But that's really a lot of overhead and you'll probably not want that.
There is no quick other way of doing so I'm afraid :/
You can create instances of the simulator with Xcode 6.1 (windows->devices) , see attached ss.
So, create a iphone-language version. This new 'simulator' is now available in the drop down list of devices when you build and run. Run in that new target device. When your app start, you should see the proper simulator in the window banner as here :
Now go into settings and set the language to your desired target. Should work, but have not tested with an actual multi-language app myself.
I want to write a program that launches the blackberry's home screen and then browse the file i required and when i click on import option i want to retrieve the path of that selected file. Is it possible in blackberry? if yes please guide me
Try FilePicker (ignoring the "launches the blackberry's home screen" part of your question which isn't very clear).
If FilePicker is not working for you, find a way to open the built-in Media app which has an Explore menu to browse the filesystem (on OS 7 at least) -- kind of what you'd do with "intents" on android the bb equivalent of which would be CHAPI.
I use the browser to open a pdf file, but I want to use the regular file manager in order to open the file with a third party application. How do I do that?
BrowserSession page = Browser.getDefaultSession();
page.displayPage("file:///SDCard/BlackBerry"+Integer.parseInt(tab[4])+".pdf");
It depends on OS version. In OS 5 RIM added the net.rim.device.api.ui.picker.FilePicker class that does what you need. For pre 5 OS you have to implement your own screen to select a file from the file-system. Your local BB SDK should contain a sample app for this, search by "fileexplorerdemo" to find that sample and to see the code.
I have developed a Blackberry app for the 4.5 os series.
It works fine on all device except on the storm 1 (storm2 untested).
The problem (on the storm) is that the main screen of my application (and all other screens in fact) is shown with the virtual keybord. But there is no text field displayed on the screen that would justify the VK to show up.
I have bitmap fields and button fields only on that screen.
The use of a single program for all devices (4.5 and up) is seriously preferred.
What is causing the VK to show up and what can I do to prevent it (in JDE 4.5)?
You could compile your application for OS 5.0 or 4.7(depending on the OS on the device) on the storm to make sure the app will not run in compatibility mode.
Or you can change how your app is setup in the JAD.
Here is a KB article from RIM
RIM-TouchCompatibilityMode: false
RIM-TouchCompatibilityMode-UserChangeable: false
You can also [disable compatibility mode] within the device after the app is installed2.
Navigate to the Applications list by
clicking Options -> Advanced Options
-> Applications.
Locate and select the third-party
application.
Display the menu and click Disable
Compatibility Mode.
if(VirtualKeyboard.isSupported())
getVirtualKeyboard().setVisibility(VirtualKeyboard.HIDE_FORCE); //Force to close the virtual Keyboard.
you will compile in 4.7 and use preprocesor directives to detect if Virtual Keyboard is supported, then force to close..
//#ifdef BlackBerrySDK4.7.0
if(VirtualKeyboard.isSupported())
getVirtualKeyboard().setVisibility(VirtualKeyboard.HIDE_FORCE);
//#endif