blackberry-jde

Turn on Flash as Light on Blackberry

試著忘記壹切 提交于 2019-12-05 00:12:01
问题 I am new to BlackBerry application development and trying to make a simple application to turn my flash light on as a torch. I know there are several applications that do this already, but I would like to try do it on my own. I have installed eclipse and all the necesary add on to get my development environment running. I have also successfully create the stock standard hello world application. I am however struggling to find out how to do this. I have been reading through the API

Turn on Flash as Light on Blackberry

試著忘記壹切 提交于 2019-12-03 15:50:52
I am new to BlackBerry application development and trying to make a simple application to turn my flash light on as a torch. I know there are several applications that do this already, but I would like to try do it on my own. I have installed eclipse and all the necesary add on to get my development environment running. I have also successfully create the stock standard hello world application. I am however struggling to find out how to do this. I have been reading through the API documentation and started playing with FlashControl , VideoControl and SnapshotControl . These however don't seem

show alert at on a date given by user?

白昼怎懂夜的黑 提交于 2019-12-02 17:52:47
问题 i am making a application in which user enter a date when he want to see an alert, i have taken the date and stores in database,and sorted date,what is the best way how we schedule them and how? please send me Code as well I am knew in Blackberry Thanks a lot 回答1: Look to class java.util.Timer method schedule(TimerTask task, Date time) 来源: https://stackoverflow.com/questions/3360988/show-alert-at-on-a-date-given-by-user

Can't make new Blackberry Project

放肆的年华 提交于 2019-12-02 14:11:43
问题 Basically I use eclipse and I installed the plugin for blackberry, however even know if I go to about and it is listed as installed, I cannot create a new project, or open the perspective either. It's nowhere to be found in the new project menu. I just followed what was on here: http://us.blackberry.com/developers/javaappdev/javaplugin.jsp Is there something else I need to do? 回答1: I have the very same problem. I download blackberry jde 7.1 for eclipse. Try to add new blackberry project, but

How to create a custom dialog

让人想犯罪 __ 提交于 2019-12-02 09:42:46
问题 I need to create yes/no confirmation dialog in a foreign language. I think I need to create my own class by extending Dialog ? Thanks 回答1: this should do the trick. My apologies to any Swedish chefs watching. int answer = Dialog.ask("Gersh gurndy morn-dee burn-dee, burn-dee, flip-flip-flip-flip-flip-flip-flip-flip-flip?", new String[] {"Hokey dokey","Bork bork bork"}, new int[] {Dialog.OK,Dialog.CANCEL}, Dialog.CANCEL); Edits: The above explained better: public final static int NEGATIVE = 0;

show alert at on a date given by user?

三世轮回 提交于 2019-12-02 08:36:46
i am making a application in which user enter a date when he want to see an alert, i have taken the date and stores in database,and sorted date,what is the best way how we schedule them and how? please send me Code as well I am knew in Blackberry Thanks a lot Look to class java.util.Timer method schedule(TimerTask task, Date time) 来源: https://stackoverflow.com/questions/3360988/show-alert-at-on-a-date-given-by-user

Blackberry - use of ApplicationMenuItem when opening a message

痴心易碎 提交于 2019-12-02 07:57:41
问题 I want to have a listener when a message is opened from the application messages folder. For this I make use of ApplicationMenuItem, but after registering it, the message could not be opened anymore. ApplicationMessageFolderRegistry messagefolderRegistry = ApplicationMessageFolderRegistry.getInstance(); messaageMenuItemListener = new CVSMessaageMenuItemListener(); CVSApplicationMenuItem menuItem = new CVSApplicationMenuItem(); menuItem.registerMenuItemListener(messaageMenuItemListener);

Blackberry - use of ApplicationMenuItem when opening a message

有些话、适合烂在心里 提交于 2019-12-02 06:27:06
I want to have a listener when a message is opened from the application messages folder. For this I make use of ApplicationMenuItem, but after registering it, the message could not be opened anymore. ApplicationMessageFolderRegistry messagefolderRegistry = ApplicationMessageFolderRegistry.getInstance(); messaageMenuItemListener = new CVSMessaageMenuItemListener(); CVSApplicationMenuItem menuItem = new CVSApplicationMenuItem(); menuItem.registerMenuItemListener(messaageMenuItemListener); messagefolderRegistry.registerMessageMenuItems(CVSApplicationMessage.TYPE_ALARMS, ApplicationMessage.Status

Can't make new Blackberry Project

大兔子大兔子 提交于 2019-12-02 03:56:05
Basically I use eclipse and I installed the plugin for blackberry, however even know if I go to about and it is listed as installed, I cannot create a new project, or open the perspective either. It's nowhere to be found in the new project menu. I just followed what was on here: http://us.blackberry.com/developers/javaappdev/javaplugin.jsp Is there something else I need to do? I have the very same problem. I download blackberry jde 7.1 for eclipse. Try to add new blackberry project, but there are no Blackberry project option. Check my JDK version, turns out I installed jdk 5 Remove the jdk 5,

HttpConnection not working in real device -Blackberry

我怕爱的太早我们不能终老 提交于 2019-12-01 10:25:17
问题 this is my code public String Serverconnection(String url) { String line = ""; if (DeviceInfo.isSimulator()) { url = url + ";deviceSide=true"; } try { HttpConnection s = (HttpConnection) Connector.open(url);//*i get the exception here* s.setRequestProperty("Content-Type", "application/x-www-form-urlencoded"); s.setRequestProperty( "Accept", "text/html,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5"); s.setRequestProperty(HttpHeaders.HEADER_ACCEPT