blackberry

notify the date change

落爺英雄遲暮 提交于 2019-12-24 17:00:48
问题 I am new to the blackberry development. My requirement is like I want to execute specific task on 8 a.m. every day. For this I tried Timer class to schedule task on 8 am. But the problem is if I change my device time, the timer stops working from that moment. So I moved to RealtimeClockListener but user had bad experience with the battery drain problem. I am just trying to work out with the efficient solution but no luck I am totally strucked here. Can anybody please help me in this regard. I

notify the date change

空扰寡人 提交于 2019-12-24 16:59:49
问题 I am new to the blackberry development. My requirement is like I want to execute specific task on 8 a.m. every day. For this I tried Timer class to schedule task on 8 am. But the problem is if I change my device time, the timer stops working from that moment. So I moved to RealtimeClockListener but user had bad experience with the battery drain problem. I am just trying to work out with the efficient solution but no luck I am totally strucked here. Can anybody please help me in this regard. I

application wont start or load in blackberry simulator

做~自己de王妃 提交于 2019-12-24 16:52:35
问题 I'm developing an application on two different machines (home and work) and while the home one seems to run just fine, the work one is, for lack of a better word, possessed. It has been exhibiting the following issues: When loading the application, it will start at the simulator's main screen instead of starting the application at random intervals. You can start the application and have it work fine, then close the simulator, reload, and have the same codebase not load. Going to applications

How to sign auto run application in blackberry

主宰稳场 提交于 2019-12-24 16:35:14
问题 I've read the help of eclipse in blackberry development environment about the auto run application that it requires signing. From where can I get the sign to enable my application to be auto run? 回答1: First read: How to make auto start application in blackberry Blackberry - how to start my own service at phone boot-up? I don't think you really need to sign application for autorun. But if you will need to, read: A60 – How and When to Sign Sharing Blackberry signing keys across JDE versions 回答2

Blackberry - ButtonField visibility depending on LabelField focus

混江龙づ霸主 提交于 2019-12-24 16:05:49
问题 I have 3 fields in my ui 2 buttons, one on top and other on buttom of a label field...when ever the label field gets focus i want the buttons to appear and i should be able to click on them...and when the label field loses focus the buttons should disappears..how can i do this... 回答1: put some manager field as a placeholder at button position, then add a FocusChangeListener to label and use add/delete field on focusChanged to show/hide button. UPDATE Since every focus change from fields may

how to disable the button using bitmapbuttonfield in advanced ui examples in blackberry

為{幸葍}努か 提交于 2019-12-24 15:34:52
问题 I am using bitmap button field in advanced ui examples. By default no method is working for disabling the button in 5.0 jre, so i have added the below code for disabling and then disabling functionality of the button is working but setchangelistener is not working that is my problem .. here is my code that i added for disabling the button..please check. do i need to change anything in invoke action method? public boolean isDisable() { return isDisable; } public void setDisable(boolean

Convert cod to jar in blackberry

北战南征 提交于 2019-12-24 14:28:30
问题 Hii Folks, I've a cod file to run on blackberry device but i want to convert it into jar. Is it possible to do so??Is their any script or is their any tool exist for that kindly suggest me regarding this?? 回答1: The short answer is "no." There's a tool Coddec that is supposed to help with this, but it's pretty flakey. I've never gotten it to work. It's also rather old and even if you could get it to work, it probably would only be good for cod files generated by older versions of the tools. 来源

use graphics.drawText(String, x, y) to draw a string on several lines

浪子不回头ぞ 提交于 2019-12-24 12:51:32
问题 I am making a custom Field representing an image and a label near it. I am drawing the image by graphics.drawBitmap(...) Nw for the text, I am using graphics.drawText(String, x, y); but if the text it bigger than the display, it doesn't return to the line. I tried to add \n but that didn't solve the problem. How can I draw a text that can expand on several lines? Thanks, 回答1: I found a solution to the problem. You can find it below for those who are interested in this question: public void

How To change the background color of a container using the Hex format?

生来就可爱ヽ(ⅴ<●) 提交于 2019-12-24 12:38:26
问题 I'm developing a BlackBerry 10 mobile application using the momentics IDE (native SDK). I want to change the background color of a container using C++. But unfortunately, relating to this [link], you only can define it like below : **Creating a color in C++:** Color c1 = Color::fromRGBA(0.5f, 1.0f, 0.2f, 0.8f); Color c2 = Color::fromARGB(0xff996633); For the color, I want to use the hex format ("#xxxxxx"). Any one can guide me on this ? 回答1: Color c2 = Color::fromARGB(0xff996633); is using

Blackberry java.io.IOException radio is off

扶醉桌前 提交于 2019-12-24 12:12:24
问题 I am trying to connect my device to a http server using wifi. But I am having this exception: java.io.IOException radio is off What is usually the cause of this and what should I check for? Thank in advance. 回答1: I've never had this error so I can't be sure. However it sounds as if your wifi reciever is turned off, try the following code. if (RadioInfo.getState() == RadioInfo.STATE_OFF) { if (Dialog.ask(Dialog.D_YES_NO, "You currently have no network connection\nDo you want to turn