blackberry-jde

Multiline labelfield

自古美人都是妖i 提交于 2020-02-02 07:35:46
问题 I must show a string that can or not be large enough to not fit in one line in all devices, I want labelfield control to automatically show remaining text in a "new line" after the original one, I mean like... auomatic carret return if the string cannot be showed in a single line, all mobile OS I have tried do this, but I cannot make BB OS to work, it just truncates my string whenever it likes and it's very annoying. Thank you 回答1: One way to do this is put your HorizontalFieldManager that

how to send the text message to multiple numbers in blackberry java applications? [duplicate]

邮差的信 提交于 2020-01-25 07:42:21
问题 This question already has answers here : Send multiple SMS on BlackBerry (2 answers) Closed 6 years ago . Send the Text message(SMS) to multiple numbers in blackberry java applications. i tried the program to send the text message with single mobile numbers. how to i do in multiple mobile numbers? This code is i'm using to send the message to multiple mobile number. Its shows the log as NullPointer Exception. package mypackage; import java.io.IOException; import javax.microedition.io

BlackBerry read json string from an URL

╄→尐↘猪︶ㄣ 提交于 2020-01-17 14:45:47
问题 I tried to read a json string loading from an URL, but I could not find complete code sample. Can any one provide or point me to a complete client code. I'm newer to BB development. this is what I have done but still can't get it work please help me. Thanks! 回答1: To read and parse data from an URL you need to implement two routines. First one of them will handle reading data from the specified URL over HTTP connection, and the second one will parse the data. Check the following application

How can I get FilePicker working properly on certain BlackBerry handsets?

老子叫甜甜 提交于 2020-01-07 04:58:11
问题 I'm implementing a Filepicker in my app to allow users to choose photos from their phones. The code I'm using is as follows: Calling the Filepicker: try { UiApplication.getUiApplication().invokeLater(new Runnable() { public void run() { FilePicker fp = FilePicker.getInstance(); fileListener = new FilePickListener(); fp.setListener(fileListener); fp.show(); } }); } catch (Exception e) { UiApplication.getUiApplication().invokeLater(new Runnable() { public void run() { Dialog.alert("Please check

Tomcat7 HTTP Status 500 - Servlet execution threw an exception

依然范特西╮ 提交于 2020-01-03 17:27:39
问题 type Exception report message Servlet execution threw an exception description The server encountered an internal error that prevented it from fulfilling this request. exception javax.servlet.ServletException: Servlet execution threw an exception root cause java.lang.NoClassDefFoundError: org/apache/commons/lang/exception/NestableRuntimeException java.lang.ClassLoader.defineClass1(Native Method) java.lang.ClassLoader.defineClassCond(Unknown Source) java.lang.ClassLoader.defineClass(Unknown

Tomcat7 HTTP Status 500 - Servlet execution threw an exception

丶灬走出姿态 提交于 2020-01-03 17:27:10
问题 type Exception report message Servlet execution threw an exception description The server encountered an internal error that prevented it from fulfilling this request. exception javax.servlet.ServletException: Servlet execution threw an exception root cause java.lang.NoClassDefFoundError: org/apache/commons/lang/exception/NestableRuntimeException java.lang.ClassLoader.defineClass1(Native Method) java.lang.ClassLoader.defineClassCond(Unknown Source) java.lang.ClassLoader.defineClass(Unknown

Blackberry jde : how to upload an image in server using MultipartPostData

瘦欲@ 提交于 2019-12-25 14:40:55
问题 Here is the problem I am trying to send an image to a remote server using the class MultipartPostData. I build my PostData with the following code : PostData body = new MultipartPostData(MultipartPostData.DEFAULT_CHARSET, false); body.append("deviceID", ""+DeviceInfo.getDeviceId()); body.append("synchro", "true"); body.append("shoot_lat", ""+latitude); body.append("shoot_long", ""+longitude); body.append("shoot_place", ""+city); body.append("shoot_time", String.valueOf(time)); body.append(

Two titile bars on a single screen in BlackBerry

為{幸葍}努か 提交于 2019-12-25 07:59:06
问题 I am trying to build a screen in BlackBerry. In which there should be a second title bar just below the original title bar. Also the second title bar should be fixed and it should not be scrolled with vertical scroll. Need some advice on this issue. 回答1: You can add the second title and the original title bar on a VerticalFieldManager. Then just set that VerticalFieldManager as title, as it's possible to set any Field , Manager instance as title. Check public void setTitle(Field title) and

Not able to read the time from native calendar event

一曲冷凌霜 提交于 2019-12-25 02:26:44
问题 I have created a appoitment for particular date and time in Blackberry calendar,i am trying to read date and time using the following code,but its showing the error. private void getEvents() { try { EventList eventList = (EventList)PIM.getInstance().openPIMList(PIM.EVENT_LIST, PIM.READ_ONLY); Enumeration events = eventList.items(); while (events.hasMoreElements()) { Event event = (Event)events.nextElement(); if(eventList.isSupportedField(Event.ALARM) && event.countValues(Event.ALARM) > 0) {

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