blackberry

BlackBerry - How to create sub menu?

五迷三道 提交于 2019-12-30 07:27:43
问题 i want to create sub menu for a BB application when i click on menu item it shows Option 1 Option 2 Option 3 When i click on option 3 it should display 1 2 3 as sub menu items.. using j2me + eclipse 回答1: Always wanted to do this ) alt text http://img380.imageshack.us/img380/3874/menugy.jpg class Scr extends MainScreen { SubMenu menu = new SubMenu(); public Scr() { for (int i = 0; i < 3; i++) { SubMenu sMenu = new SubMenu(); menu.add(new SubMenuItem(i + " item", sMenu)); for (int k = 0; k < 3;

Blackberry push notification implementation

天涯浪子 提交于 2019-12-30 06:31:08
问题 How does one implement a push notification for a blackberry app? I heard that in order to do so I need to purchase a Blackberry Enterprise Server which costs me 1400 per year. Is this true? Where is a good starting point in implementing push notifications? I am experienced with iPhone push development, but cannot find the equivalent for blackberries. 回答1: Earlier this year Blackberry launched a push service that does not require a BES, similar to Apple's offering. The have a Java SDK for it.

BlackBerry touchEvent outside Field triggers fieldChanged

风格不统一 提交于 2019-12-30 05:22:07
问题 I am having a problem where if i press/touch outside of a field the fieldChanged() event is triggered for the field that has focus. The layout for my MainScreen is pretty straight forward, something like so: public class myMainScreen extends MainScreen implements FieldChangeListener{ public myMainScreen(){ CustomFM1 fm1 = new CustomFM1(); CustomFM2 fm2 = new CustomFM2(); add(fm1); add(fm2); } } If i press a button/field inside of either FieldManager it works fine. The problem is when i press

How i can display progress/indicator dialog in Blackberry?

对着背影说爱祢 提交于 2019-12-29 09:17:11
问题 i am developing app in 5.0 version. in my app there is database so when data is coming from db it is taking time so i have to put progress dialog in between. i want to open dialog when data is coming when it fill in all fields then it would be dismiss. does any body have idea for this please send me. Thanx in advance. 回答1: Check this article http://supportforums.blackberry.com/t5/Java-Development/Sample-quot-Please-Wait-quot-screen-part-1/ta-p/493808 This article is intended provide a fully

How to call HTTP URL using wifi in J2ME code for BlackBerry 5.0 and above?

爷,独闯天下 提交于 2019-12-29 09:17:09
问题 I am calling a web service from BlackBerry using J2ME code. When I try to open a connection using HttpConnection , it is checking only the GPRS connection. Now, I want to check the Wi-Fi connection and call a webservice through Wi-Fi. The following code is my connection section. How to change the code for a Wi-Fi connection? public boolean HttpUrl() { HttpConnection conn = null; OutputStream out = null; String url = "http://www.google.com"; try { conn = (HttpConnection) new ConnectionFactory(

How to set a ScrollBar to the VerticalFieldManager in Blackberry?

放肆的年华 提交于 2019-12-29 05:35:11
问题 I am using this code to set the scrollBar to the VerticalFieldManager in Blackberry VerticalFieldManager temp2=new VerticalFieldManager(VerticalFieldManager.VERTICAL_SCROLL); LabelField result=new LabelField("Result \n Result\n Result\n Result \n Result\n"); temp2.add(result); The labelField is added and the contents are displayed by the VerticalFieldManager is not getting scrolled.Is my code is correct?.If anyone have any idea to handle this please help me. 回答1: 1. Set VerticalFieldManager

Blackberry Apps - Importing a code-signed jar into an application project

余生颓废 提交于 2019-12-28 16:08:48
问题 I'm working on a library project that Blackberry Java developers can import into their projects. It uses protected RIM APIs which require that it be code-signed, which I have done. But, I can't get my Jar imported and working with a simple helloWorld app. I'm using the eclipse plug-in Blackberry-JDE. EDIT : Solution found.... since I found the solution I removed the things I've tried, leaving only the solution ... BUILDING THE SDK/Libary (use BB-ANT-TOOLS, either in eclipse or standalone)

Push Notification in Blackberry

你离开我真会死。 提交于 2019-12-28 07:06:05
问题 Hi I want to have push notification in blackberry.I have already googled for the answer and got the Push Services Guide.i read this guide .This guide does not give any code information for the client side application.It talks push server sdk and its installation but does not give any idea of how to write client code to have push notification. So is there any sample code that provides the concept of push notification. thanks 回答1: For client side code, refer this link Blackberry push. Use this

can I run my 5.0 SDK Application to Devices having BB 7.1 OS? [closed]

廉价感情. 提交于 2019-12-25 18:33:47
问题 It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center. Closed 6 years ago . can I run my 5.0 SDK Application to Devices having BB 7.1 OS. Thanks. 回答1: Yes, it is possible. You can run it on BB RIM OS 7.1 But please note, that your app won't run on BB 10 platform. The most recent

In Blackberry OS 5.0 , Is there any UI Handler to update UI of the Screen

我只是一个虾纸丫 提交于 2019-12-25 18:18:09
问题 I am developing an app with Blackberry OS 5.0. Is there any UI Handler(like in android) which updates the UI of the present screen. I am using thread's in my app,when a thread is running at the same time i need to update my UI of the screen. Right now,after my thread is completed, i am popping the present screen and push the new screen again. Then only my UI is getting updated. Is there any alternative way to update UI when thread is running. 回答1: Yes, there's a much better way of doing it: