blackberry

Not able to install signature keys

非 Y 不嫁゛ 提交于 2019-12-11 16:37:27
问题 I have to sign a BlackBerry application so that I can load it onto the device, but the system that the signature keys I got from RIM are installed on got formatted. Now I am trying to install the signature keys on another system, but the server prompts me for this: "Unable to register client '2909103544' because there are no more registration attempts. If you have already registered with this server, then you must contact RIM to register additional user." Can we install these keys on only one

Resize Bitmap on Blackberry, while keeping alpha data

戏子无情 提交于 2019-12-11 16:36:08
问题 I have a source image in PNG with alpha information, that I scale with Graphics.scaleInto(): Bitmap dst = new Bitmap(123, 178); dst.createAlpha(Bitmap.ALPHA_BITDEPTH_8BPP); Bitmap img = Bitmap.getBitmapResource(name); img.scaleInto(dst, Bitmap.FILTER_BOX); This works, the new scaled image is put in dst , but the alpha information is distorted. Some areas show as white, while some are transparent. Transparency borders have a blue tint to them. 回答1: How do you draw the scaled image? As I found

None of code can establish http connection over BIS

吃可爱长大的小学妹 提交于 2019-12-11 16:22:45
问题 I am new in developing Blackberry Application. In these three days, I already searched and learned in both forum and tutorial from the RIM itself. But none of them can solve my problem. >.< So. I already tried some different methods to establish http connection over BIS in 4.6. These are the following codes: 1. HttpConnection httpConnection; String url = "myURL;deviceside=true"; try{ httpConnection = (HttpConnection) Connector.open(url); Dialog.inform(">.<"); } catch(Exception e) { Dialog

Add A ticker to Blackberry Display

随声附和 提交于 2019-12-11 15:58:15
问题 im new to blackberry,So Please give a blackberry code for adding ticker to blackberry display bottom part of the disply ?? Need Only for how to Create a Ticker.?? Thank you 回答1: try this import java.util.Timer; import java.util.TimerTask; import net.rim.device.api.system.Display; import net.rim.device.api.ui.Field; import net.rim.device.api.ui.Font; import net.rim.device.api.ui.Graphics; public class Ticker extends Field { String text; final int screenWidth = Display.getWidth(); int offset =

Different cod/jad files created using Blackberry jde and Ant

一曲冷凌霜 提交于 2019-12-11 15:35:57
问题 I am using blackberry ant tools to generate cod/jad files and found the generated cod to be different from the one i am trying to generate using blackberry JDE 5.0 . The sizes of the siblings cod files and main cod file are not the same. However I am able to install and run the app using the cod files generated from either JDE or Blackberry ant tools without any problem. I am using the same source code and resource files in both the cases. Can someone suggest me what could be reason for

Why does my rectangular bitmap get clipped to a square when I draw it?

守給你的承諾、 提交于 2019-12-11 15:29:25
问题 I’m creating a custom field to make a image button. The image is drawn as a box with the w and h equal, but the image's height is almost double the width. I ran the debugger and the correct w,h are being put in g.drawBitmap(0, 0, w, h, image, 0, 0) . Is thee a way to fix this? public class cPictureButton extends Field{ private Bitmap image; public cPictureButton( Bitmap image, long style) { super(style); this.image=image; } public int getPreferredHeight() { return image.getHeight(); // return

Blackberry simulator 9900 not working?

你离开我真会死。 提交于 2019-12-11 15:00:42
问题 I have just switched to Blackberry from android. I have downloaded and installed BlackBerry_JDE_PluginFull_2.0.0_indigo . And created a helloworld project but when I run the project on simulator a dialog comes up "Blackberry Touch" . If I press OK it hangs and dialog and simulator doesnt work .Please help what is the problem here I am new to all this? 来源: https://stackoverflow.com/questions/18378387/blackberry-simulator-9900-not-working

How to make UI in blackberry including images in such a way that it works in different screen resolutions devices?

心已入冬 提交于 2019-12-11 14:43:03
问题 I am developing an application which will run on different blackberry devices. 640 x 480 800 x 480 360 X 480 320 X 240 480 X 360 Please tell me how can i handle these resolutions. I have used Differnt PicturebackgroundField, EditFields, etc. 回答1: There is no single way to handle different resolution in Blackberry. You can use following way: CASE 1. Resizing and scaling the images for different resolution. CASE 2. Create single build by including images for each target resolution. CASE 3.

Add new menu item in blackberry to launch my app

南楼画角 提交于 2019-12-11 14:38:54
问题 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. 回答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"); 回答2: The

Neither float nor double works on Blackberry OS 4.5

☆樱花仙子☆ 提交于 2019-12-11 14:25:37
问题 As soon as I add a float or a double variable to my program, it stops working on BB models 8100 and 8800, both running OS 4.5. I have a couple of newer phones with OS 5 and 6, respectively, and the same binary works just fine on those. Why would this be? Also, see "Float or double on Blackberry?" which led to this question. When the application is started, before it really starts, it shows an error message to the effect of "modules bla blah can not verify blah". I'll update the message to the