blackberry

Blackberry JDE ArrayList?

折月煮酒 提交于 2020-01-04 01:20:32
问题 The Blackberry JDE does not include java.util.ArrayList , even though it knows about java.util ? What's up with that? Is there an equivalent class for BB? I don't want to use an array, really, because I have an unknown number of objects I'm dealing with. why does the Blackberry JDE leave so much out? 回答1: Well they are Java from a language standpoint. It just doesn't support all of the standard edition packages. It falls more inline with the microedition standards, but is way beyond J2ME from

Taking screenshot of the current screen in BlackBerry

不羁岁月 提交于 2020-01-03 20:57:29
问题 Is it possible to take a screenshot of the current screen in a BlackBerry Application? I have a button in my screen, when I click the button I want to send an email with the screenshot of the current screen. 回答1: You can use the following method to get a screenshot of the displayed screen public static Bitmap getScreenShot() { // get the current screen . Bitmap bitmap; bitmap = new Bitmap(Display.getWidth(), Display.getHeight()); Display.screenshot(bitmap); // return the screen shot return

blackberry how to create Tabbar?

冷暖自知 提交于 2020-01-03 05:12:05
问题 Hi all how to create Tab bar in blackberry ? 回答1: Take a look at this entry: How To - Create tabbed view screens The example included: package com.rim.samples.tabcontrol; import net.rim.device.api.ui.Field; import net.rim.device.api.ui.FocusChangeListener; import net.rim.device.api.ui.UiApplication; import net.rim.device.api.ui.component.BasicEditField; import net.rim.device.api.ui.component.LabelField; import net.rim.device.api.ui.component.SeparatorField; import net.rim.device.api.ui

How to add images to the grid view and adding click function to these images?

百般思念 提交于 2020-01-03 04:32:28
问题 public final class gridFieldDemoScreen extends MainScreen { LabelField one, two, three, four, five, six; public gridFieldDemoScreen() { setTitle("gridFieldDemo"); GridFieldManager grid = new GridFieldManager(2, 3, 0); one = new LabelField("ONE"); grid.insert(one, 0); two = new LabelField("TWO"); grid.insert(two , 1); three = new LabelField("THREE"); grid.insert(three, 2); four = new LabelField("FOUR"); grid.insert(four, 3); five = new LabelField("FIVE"); grid.insert(five, 4); six = new

Java Build Path Entry Error: Blackberry Eclipse

妖精的绣舞 提交于 2020-01-03 03:22:14
问题 I have a project on one computer that I need to work on another computer. I followed the tutorial here: http://agile.csc.ncsu.edu/SEMaterials/tutorials/import_export/ to import and export the project files and transfer them via USB drive. However when I import the project I get a red exclamation mark icon on the project and an error saying: "The project cannot be built until build path errors are resolved" and "unbound classpath container: 'JRE System Library [BlackBerry JRE 6.0.0] in project

Good LDAP library for BlackBerry?

一个人想着一个人 提交于 2020-01-03 03:10:08
问题 I am looking for nice Java LDAP library suitable for using on BlackBerry. There is some basic support for LDAP in BlackBerry Java SDK, however it is too basic and I would like to use direct TCP connections instead of MDS (MDS is the only transport option when using LDAP classes from standard BB SDK). Regarding features I basically want to search some users and their attributes. To put it simple we can assume I am building a telephone book, but the clients are only reading entries from the

How to highlight focused custom buttonfield (ImageButtonField) on Blackberry?

假如想象 提交于 2020-01-03 03:09:07
问题 I made a custom ButtonField class where I have an image as a button. However, I would like to be able to select this image and to know it is selected, either by partially highlighting it or putting a square around it, whatever. I have a BitmapField in my UI that highlights itself in blue when I select it, but my other images that use ImageButtonField, do not have the blue highlight. I do not want the bitmap to disappear completely when selected. here is the code : package mypackage; import

Is it possible to use MJSIP api with Blackberry?

放肆的年华 提交于 2020-01-02 23:12:14
问题 I am trying to develop an VOIP application for blackberry,after a long surf i came to know about mjsip api.But i have a doubt that is it possible to use this api with blackberry development to create VOIP application.Please anyone knows the answer help me. 回答1: Thanks, it's a nice project you found there! There is an J2ME version MjSipME, and the only thing I can say now for sure is that it compiles with Blackberry without any errors. UPDATE You right, there are missunderstanding with

When I am trying to align fields vertically, they aren't behaving what I expected?(Blackberry JDE4.5.0 eclipse)

橙三吉。 提交于 2020-01-02 18:05:32
问题 I am using Eclipse & JDE 4.5.0 plug-in. How to align fields vertically. Can we align fields like LEFT_BOTTOM , RIGHT_BOTTOM , LEFT_VCENTER , RIGHT_VCENTER , CENTER (vertically & horizontally), BOTTOM_CENTER , etc...? 回答1: BlackBerry UI field managers are notoriously annoying when dealing with field alignment. Managers seem to ignore all style flags (like HCENTER , VCENTER , etc) so the only way you'll be able to do this is to override the sublayout method of your manager and do it yourself.

BlackBerry - Invoke a click event on bitmap Field

跟風遠走 提交于 2020-01-02 16:19:07
问题 can anyone help me for solving the below question. I am making an application for blackberry in that from one bitmapField i have to invoke a new screen by clicking on the bitmapField. I want the code for the same... how to invoke a new screen by clicking on a bitmapField... and i am using blackberry JDE 4.7 回答1: Try making the BitmapField focusable BitmapField bm = new BitmapField(bitmap, BitmapField.FOCUSABLE); This might help 回答2: BitmapField bmpField = new BitmapField(bitmap, BitmapField