rim-4.5

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 LongClickListener implementation

旧时模样 提交于 2019-12-23 04:26:29
问题 I need to implement OnLongClickListener for BlackBerry platform. It may be used for user input (ex phone keyboard implementation) or other functionality (navigation, rewind control, zoom control, etc). There are requirements: target control to listen - custom ButtonField it should be version compiliant with 4.5 and 4.6, so no touchEvents etc. configurable long click time Do you have some suggestions about concept and implementation? Also, what issues I can get in using multiple listeners for

Scrolling problem in Blackberry application

核能气质少年 提交于 2019-12-12 22:35:55
问题 I am not able to scroll through the application screen using trackball. I am using Blackberry Pearl 8100 simulator. Please help. Thanks in advance. 回答1: Does it work on other simulators and just not the 8100? How about a real handset? For your screen class you can try using the style attribute to specifically tell it to have vertical scrolling, super(MainScreen.VERTICAL_SCROLL | MainScreen.VERTICAL_SCROLLBAR); similarly you should make sure that it's not set to super(MainScreen.NO_VERTICAL

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

a 夏天 提交于 2019-12-06 07:44:44
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...? 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. Here's a little snippet to show you what I mean. This particular code actually does horizontal centering, not

Notification Service for Blackberry OS 4.5 application

佐手、 提交于 2019-11-30 20:08:21
问题 I am developing an application similar to email application.Whenever new message is received my notification service should indicate change to user by updating icon,also, the notification service should continuosly listen to server for incoming events. I am developing in os version 4.5. 回答1: There is no ApplicationIndicator in RIM OS < 4.6 (see bb forum thread) you have several options to notify the user (none of them is the indicator, unfortunately). you can: play a sound trigger the

Add a notification icon at the status bar in BlackBerry JDE 4.5.0

狂风中的少年 提交于 2019-11-30 13:33:23
问题 I'm writing a Java application in BlackBerry JDE 4.5 that will start listening for some event at the start up. I want to display a small icon at the status bar. I know its support in version 4.6.0 of the BlackBerry API set with ApplicationIcon, ApplicationIndicator and ApplicationIndicatorRegistry classes but which classes are there in BlackBerry JDE 4.5.0 API set? Update I think some support is there for 4.5.0 as I'm using Blackberry Pearl 8100 with OS v4.5.0.81 which displays Notification

Add a notification icon at the status bar in BlackBerry JDE 4.5.0

旧城冷巷雨未停 提交于 2019-11-30 07:46:55
I'm writing a Java application in BlackBerry JDE 4.5 that will start listening for some event at the start up. I want to display a small icon at the status bar. I know its support in version 4.6.0 of the BlackBerry API set with ApplicationIcon, ApplicationIndicator and ApplicationIndicatorRegistry classes but which classes are there in BlackBerry JDE 4.5.0 API set? Update I think some support is there for 4.5.0 as I'm using Blackberry Pearl 8100 with OS v4.5.0.81 which displays Notification Icons at status bar for any incoming messages or calls. I made the Alternale Entry point & Main CLDC app

Blackberry - background image/animation RIM OS 4.5.0

江枫思渺然 提交于 2019-11-27 14:15:21
Please help me, how to set a background image for screen and How to do animations on any-field or on text? Thank You.... Background image In Screen class there is a protected void paintBackground(Graphics graphics) method. By some reason we can't use it directly to paint background image in screen. The catch: paintBackground method is derived from Field class, and we can use it in VerticalFieldManager on example: class BgScreen extends MainScreen implements FieldChangeListener { ButtonField mButton; public BgScreen(Bitmap background) { super(); BGVerticalFieldManager manager = new

BlackBerry - Simulate a KeyPress event

好久不见. 提交于 2019-11-27 14:14:52
I have a BlackBerry application that needs to take pictures from the camera and send them to a server. In order to do this i invoke the native camera application and listen to the filesystem. Once an image is captured and saved as a new jpeg file i get notified, resume foreground control and go about my business. The problem starts occurring after the first time this cycle is completed because now when i decide to call the camera application again it is already opened, and now the user is seeing a thumbnail of the last picture that was taken and several buttons allowing him to manipulate

Blackberry - background image/animation RIM OS 4.5.0

旧街凉风 提交于 2019-11-26 16:38:40
问题 Please help me, how to set a background image for screen and How to do animations on any-field or on text? Thank You.... 回答1: Background image In Screen class there is a protected void paintBackground(Graphics graphics) method. By some reason we can't use it directly to paint background image in screen. The catch: paintBackground method is derived from Field class, and we can use it in VerticalFieldManager on example: class BgScreen extends MainScreen implements FieldChangeListener {