blackberry

Push notification on BlackBerry

安稳与你 提交于 2019-12-25 01:45:01
问题 I need to send a notification to the BlackBerry device when new information is added to the server. The server should send the notification to the BlackBerry device and blackberry device should then receive this notification. I installed the BlackBerry push SDK, and I obtain registration with the BlackBerry Push Service, but I didn't understand how to use it and when. What is the next step? What should I do for the client and server part? 回答1: Blackberry provide the sample demo " HttpPushDemo

ObjectChoicefield in blackberry

半城伤御伤魂 提交于 2019-12-25 01:32:32
问题 I have a objectchoice field with choices as say YES and NO. I want to handle event when the user selects any one of the choices. for example when the user selects YES i want a labelField to be added to the screen. and when No is selected this label should be removed from the screen Please help 回答1: I think you can do it by implementing FieldChangeListener interface and override on fieldChanged event. 回答2: In your window class, implement FieldChangeLIstener. objectChoiceField.setChangeListener

Sorting with BlackBerry

 ̄綄美尐妖づ 提交于 2019-12-25 00:37:45
问题 I have a file consisting of entries like Paula 100, Steve 150, Julian 200. I want to sort this. Can I use the Collections framework in BlackBerry to sort file entries consisting of numbers and names? I can't find any sorting program for blackberry. So I am wondering if I can use Collections.sort()? 回答1: There are sortable collections in the BlackBerry API that you can use. Search the JavaDocs for things like SimpleSortingVector and BigVector. 回答2: Unfortunately, BlackBerry uses J2ME which

How to create CustomLabelField which suites for all blackberry version?

我只是一个虾纸丫 提交于 2019-12-24 22:23:29
问题 I have created my own customlabelfield, using this customlabelfield i can able to modify the background color,font color,width and height...When i use this label field in the version 4.6 i can get the expected output like,if the text is not suite in single line then it automatically comes to second line but if i use the same in version 4.5 the text is not coming to next line and instead sometimes it showing half of the text and sometimes not even showing single line.If u have any idea to

Designing secure consumer blackberry application

吃可爱长大的小学妹 提交于 2019-12-24 21:54:43
问题 I am evaluating a requirement for a consumer blackberry application that places high premium on security of user's data. Seems like it is an insurance company. Here are my ideas on how I could go about it. I am sure this would be useful for others who are looking for similar stuff Force the user to use device password. (I am guessing that this would be possible - though not checked it yet). Application can request notifications when the device is about to be locked and just after it has been

Checkbox with a ObjectListField not focusable and checkable?

瘦欲@ 提交于 2019-12-24 20:28:22
问题 I am trying to create a checkbox and below this objectlist is there. I am trying to focus on checkbox but it is niether focusable nor checkable .The focus stands on the first element of the list below. How I can focus the checkbox as well as making it checkable? Here, checkbox is in a VerticalFieldManager in which I am adding the list. Here I am adding two things:one is Horizontal Field Manager(onlineCheckBoxHfm) and other is objectListField(buddyList). Now problem is, default focus is on

Blackberry - get all child fields of control

不羁的心 提交于 2019-12-24 19:37:54
问题 I am having one horizontal field manager i am adding some components at run time.I want to know which are the components i have placed in the horizontalfieldmanager.Can any one give me idea how to find which are the components are present in horizontal field manager. regards, s.kumaran. 回答1: +1 Jan, but what about inner Managers? Some recursion will do the thing. class Scr extends MainScreen implements FieldChangeListener { HorizontalFieldManager mMainPanel; VerticalFieldManager

Gstreamer on iphone, blackberry, android, nokia? How would it perform?

…衆ロ難τιáo~ 提交于 2019-12-24 19:12:35
问题 Gstreamer on IPhone, Android, Blackberry, Nokia. How can we make it using C or D or Vala languages? Or should we just use Java or Lua? 1) Glib porting to IPhone, Android, Blackberry, Nokia is available? For Android, there is a tips http://gstreamer.freedesktop.org/wiki/GstreamerAndroid_InstallInstructions For IPhone, no idea For Nokia, no idea For Blackberry, no idea Wish someone put some answers and feedback on this topic. 回答1: I don't know much about mobile development, but your best bet

Edit BlackBerry cod file with xvi32

人盡茶涼 提交于 2019-12-24 18:26:43
问题 I want to a edit a URL in a .cod file, I used XVI32 to open the file and then replaced the URL with a new URL at the same length. After the change I made the App isn't working on my device after I reinstalled it. Is it possible to change the URL without ruin the file? Thanks. 回答1: When you change a cod file content, then its signature becomes incorrect, and the cod file becomes unusable. Answering your question: it is not possible. 来源: https://stackoverflow.com/questions/9962264/edit

Using Browserfield.displayContent with <frame> that has an external url

…衆ロ難τιáo~ 提交于 2019-12-24 17:40:54
问题 I am trying to create a screen for a blackberry 5.0+ app that has a banner at the top and then a Browserfield underneath that views an external site. The banner is hosted on one site and the content for the BrowserField is hosted on another. Originally I tried using 2 BrowserFields but had issues when several devices did not display the banner and only showed the content underneath. Furthermore when another screen with the same setup was displayed the app would crash with an