blackberry

LWUIT Uncaught exception: java.lang.OutOfMemoryError(stack trace incomplete)

孤人 提交于 2019-12-11 09:19:17
问题 I developed an Rss Application using LWUIT Tabs,i want to display Rss Feed Titles and images on my Lwuit Tab screen,but when i run my application i am able to display three List (title with image)items Sucessfully,after that i am facing java.lang.OutOfMemoryError(stack trace incomplete) Eventhough there are list items present?can any one help......thanks... Here my Code: public class Process { protected XMLMidlet midlet; Form form1; Image image; Tabs tabs; private List myNewsList; private

BlackBerry application crashes when i install it on my blackberry bold 9700?

百般思念 提交于 2019-12-11 09:14:28
问题 The error I get is that class net.rim.device.api.ui.ScrollView is not found. All I am using in application are some fields: import net.rim.device.api.ui.container.MainScreen; import net.rim.device.api.ui.component.BitmapField; import net.rim.device.api.ui.component.LabelField; import net.rim.device.api.system.Bitmap; import net.rim.device.api.ui.Field; import net.rim.device.api.ui.Color; import net.rim.device.api.ui.component.EditField; import net.rim.device.api.ui.component.CheckboxField;

Get list item row to wrap instead of show ellipsis

独自空忆成欢 提交于 2019-12-11 09:05:15
问题 I used the code below to get produce a layout that formats an image, a title and a text region in a list item. I would like to get it to look like the Twitter apps layout - in terms of how it gets the tweet to wrap, what am I missing? Platform details: BB OS 5.0+ Code: protected void sublayout(int width, int height) { try { deleteAll(); } catch (Exception ex) { } MyTitleField lblTitle = new MyTitleField(info.title);//extends LabelField LabelField lblDesc = new LabelField(info.description ,

BlackBerry Wi-Fi Location in OS 5

蹲街弑〆低调 提交于 2019-12-11 09:01:45
问题 I have successfully acquired Wi-Fi location in my BlackBerry App built on BlackBerry JRE 6.0 through the following code: BlackBerryCriteria myCriteria = new BlackBerryCriteria(LocationInfo.GEOLOCATION_MODE) I am now trying to compile the same App in BlackBerry JRE 5.0 However, LocationInfo is not part of BlackBerry 5 API and so I would require another mechanism. I have come to understand that GEOLOCATION_MODE_WLAN is available in BlackBerry 5 only through third party application. For example,

FileIOException in Blackberry

拜拜、爱过 提交于 2019-12-11 08:53:41
问题 I am having a fileIOException: File system out of resources when i tried to read some files on my blackberry torch. What can I do to prevent this from happening? 回答1: You probably have too many files open simultaneously, or you haven't properly closed previous file connections. There is a global limit on the number of open file connections on the BlackBerry, something like 16 open at any time. You should close connections as soon as you don't need them. 来源: https://stackoverflow.com/questions

How get height of title screen on blackberry screen?

僤鯓⒐⒋嵵緔 提交于 2019-12-11 08:53:25
问题 Why getHeight after setTitle equal null? How do I get the actual height value? public class ActivityScreen extends MainScreen { /** * Creates new instance Activity screen */ public ActivityScreen() { super(); TitleFieldManager titleField = new TitleFieldManager(Display.getWidth()); super.setTitle(titleField); if (titleField.getHeight() == 0) { // Why titleField.getHeight() == 0 ? } } } 回答1: Because you are calling titleField.getHeight() in the screen's constructor. At this point the UI

Blackberry cfg file not found when device connects to computer and Desktop Manager open

痴心易碎 提交于 2019-12-11 08:49:43
问题 I am storing all the config details to a test.cfg file in my BlackBerry device. So every time when i start the application, the app will check if test.cfg exists. If it exists, then it loads all the configuration from that file and if not, the app will show the config page, then the user can enter all the config details and proceed further. The above is working fine except one scenario. When the device is plugged in to the system and I open the Desktop Manager and the user opens the

Packaging a BlackBerry (WebWorks) PhoneGap/Cordova application

拟墨画扇 提交于 2019-12-11 08:11:19
问题 I'm working with PhoneGap/Cordova and the only options I see is to build to the emulator or to build for debuging to the device. I want to package the app for further distribution and publishing. Any thoughts? Thanks!! 回答1: First build with ant blackberry build Then, you need to get and install signing keys: https://developer.blackberry.com/html5/documentation/signing_setup_smartphone_apps_1920010_11.html Then finally, once you are able to code sign you need to use bbwp to sign and package

Display an EditField in a ListField of BlackBerry

你离开我真会死。 提交于 2019-12-11 08:07:08
问题 In my app i have to display list of items with price in EditField . How can i add EditField in list? For ListField , i am using this code public void drawListRow(ListField listField, Graphics graphics, int index, int y, int width) { this.listField=listField; String text=(String) get(listField, index); if(holder[index]==null) { holder[index]=placeholder; } graphics.setColor(rgb); graphics.setFont(Utility.getBigFont(DConfig.getFSize()+4)); graphics.drawBitmap(3,y+7,placeholder.getWidth(),

BlackBerry - Unable to get a file with REM extension

送分小仙女□ 提交于 2019-12-11 07:52:47
问题 As part of the application, we are creating a file myApp.cfg in "file:///store/home/user/" location on the device. I have enabled encryption (Option| Security | Encryption | Encrypt). However, the file is not getting encrypted. I dont see a file myApp.cfg.rem. This is happening in the client environment though. What am I missing? Thanks Krish 来源: https://stackoverflow.com/questions/18381352/blackberry-unable-to-get-a-file-with-rem-extension