blackberry

BlackBerry Encryption AES 256 - No Padding

六月ゝ 毕业季﹏ 提交于 2019-12-13 07:51:26
问题 I want to encrypt data in BlackBerry using the AES 256 encryption method. The requirement is to encrypt with No Padding; " AES/ECB/NoPadding ". I am passing a 16 byte array and the encrypted data returned is a hex value of length 32. I have tried the following but it is not producing the correct result. The returned value is different from the expected encrypted value; tested in Android. The results between Android and BlackBerry do not tally. I have used the following method: public static

Application is not loading in simulator using Eclipse

穿精又带淫゛_ 提交于 2019-12-13 07:26:26
问题 I am able to build a application what I have , however when I check in simulator there is no application icon available using Eclipse, i have checked carefully there are no errors. When I run same application in JDE ,application icon is available. 回答1: Are you checking if your project is activated for blackberry...or there may be no main method in your appliaction.. 回答2: Did your try to start the simulator and manually add the cod file via "File" -> "Load COD File". Sometimes the app get

How to detect whether field is touched or clicked?

笑着哭i 提交于 2019-12-13 07:25:13
问题 I override the method like this. newsbtn = new Custom_ButtonField(news, newsactive, newsactive) { protected boolean navigationClick(int status, int time) { Main.getUiApplication().pushScreen( new Menu_PopupMenu(position)); return true; } protected boolean touchEvent(TouchEvent message) { int eventCode = message.getEvent(); if (eventCode == TouchEvent.UNCLICK){ Main.getUiApplication().pushScreen( new Menu_PopupMenu(position)); } return true; } }; add(newsbtn); Here is the Custom_ButtonField

BlackBerry - App connects to webservice on simulator, but not on device

安稳与你 提交于 2019-12-13 06:49:39
问题 i have developed an application, that gets installed in the mobile phone. The brief information of application is it is accessing web services, from another machine. Now i tested the application on the simulator in 2 ways 1) MDS: in the application , there is a url of the machine, where web services are present. this url is in the stubs generated ,i make no changes to the url. and i start the MDS-cs server , Now the application works fine. 2) Direct TCP: to the url , i append ;deviceside=true

How to create image buttons that scale across multiple resolutions?

落爺英雄遲暮 提交于 2019-12-13 06:42:55
问题 Is there a standard methodolgy for scaling image buttons using one image size across multiple blackberry phone model screen resolutions ? I'm resizing encoded iamges based on display width. So to resize an image to a quarter length of the screen I do - imageLength = Dislay.getWidth / 4; Is there something better ? Thanks 回答1: I'm not sure I understand what you need. Do you want to scale an image? If so, take a look at scaleImage32(int, int) method. Also, you should use methods from the

ListField's method invalidate does not work

喜你入骨 提交于 2019-12-13 06:40:31
问题 I'm writing a custom list field, but it doesn't not work when i invoke invalidate method. The screen is always empty, while the data of list field is not null or empty! Please help me figure out the problem. Thank you in advance public class FileListField extends ListField implements ListFieldCallback{ private static final Bitmap fileBitmap = Bitmap.getBitmapResource("document.png"); private static final Bitmap dirBitmap = Bitmap.getBitmapResource("emty_folder.png"); private static final

RadioInfo.getCurrentNetworkName() giving a null value?

大兔子大兔子 提交于 2019-12-13 06:29:28
问题 I am using RadioInfo.getCurrentNetworkName() to get the operator name in the blackberry device. It is working fine since now when I noticed that for a given device, this function is returning a null value. The code used is the following: String operator = ""; try { operator = RadioInfo.getCurrentNetworkName(); } catch (Exception ex) { } Dialog.alert(operator); The alert gives a null value. So i guess an exception is thrown when getting the network name. What can be the reason behind this?!

Create Transparent Mainscreen in Blackberry

不问归期 提交于 2019-12-13 06:21:36
问题 i want to create a type of MainScreen in my Blackberry app which should be Transparen/Translucent . I tried with following code on MyCustomMainScreen's constructor but it still shows a white screen Background bg = BackgroundFactory.createSolidTransparentBackground(Color.BLACK, 50); this.setBackground(bg); I have read in the forum and also tested it for popup screens and it works fine with them but fails with mainscreens . Does anyone have any idea how to achieve this for MainScreen..? -Big O

How to create custom scrolling always start from bottom

血红的双手。 提交于 2019-12-13 06:07:40
问题 Here I am creating a screen for chatting that contains a top bar, custom vertical scroll manager, an Editfield to send messages and a send button. Now I create a message layout: it has VerticalFieldManager and it contains EditField that is focusable and readonly, and two LabelField s for name and date. This vertical field manager is created dynamically depending on the number of chat messages. This is all laid out in custom scroll. I need scrolling to start from the bottom of the screen.

scroll change listener on blackberry

血红的双手。 提交于 2019-12-13 06:06:48
问题 I already posted my question below link.. scroll change listener on blackberry The error has been resolved. But i need to move the field center position after scrolling . pls give any idea... Thanks in advance... there are number of fields add in the scroll bar... after scrolling its show like this. But i need to move the field center position like this. Pls give any idea.. 回答1: Looks like you just need some flag to detect whether this is a sroll event originated by user, or from the code