blackberry-eclipse-plugin

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

removing the default blue color on focus

∥☆過路亽.° 提交于 2020-01-15 06:33:11
问题 I have a created a custom Button field , when the button is on focus default blue background is coming , i want to remove that blue background . actually i am placing image on button and on image there are certain area which is transparent . when that custom button is on focus then blue background is displayed . i want to remove that blue background. Thanks alot 回答1: Override method protected void drawFocus(Graphics graphics, boolean on) { if (on) { //draw your own custom focus. } } 回答2:

BlackBerry - Uncaught exception: Application is not responding; process terminated

感情迁移 提交于 2020-01-06 15:18:58
问题 I'm developing an application using the Blackberry plugin for eclipse and I am getting the following error when making a call to a web service when I have deployed my application to a production server and handset... it works in my local simulator and development environment. (I can't hook my simulator directly to my production environment) Uncaught exception: Application app(150) is not responding; process terminated The call is being made from another thread. The thread is passed to my

To set multiple fonts in blackberry

你说的曾经没有我的故事 提交于 2020-01-05 09:04:52
问题 How to set multiple fonts in blackberry? Actually we are using the following code to load the custom fonts to our application. InputStream is = this.getClass().getResourceAsStream("/Text-Italic.ttf"); FontManager.getInstance().load(is, "Text-Italic", FontManager.APPLICATION_FONT) ; If I want to set another font, Do I have to unload the current font or not? 回答1: No. You don't have to unload the current font. You can add another custom font. Thanks Naveen M 来源: https://stackoverflow.com

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

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)

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

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

Class not found exception after adding a new image to the resource folder

≯℡__Kan透↙ 提交于 2019-12-24 03:26:38
问题 The app works perfectly fine on the simulator and on the device. After adding a new set of images, it started to show on every run, on the simulator and on the device, a class not found exception. When trying to delete some images to find the cause, I get different classes not found when running. Compiling and packaging the application generates no warning or error. They even get signed. Some of the "classes not found exception" I get: java.lang.stringbuilder net.rim.device.api.ui

How to make Ant build for my BBM application with native BB jar

半世苍凉 提交于 2019-12-24 00:48:38
问题 I am trying to use BBM in my application,I want to make the ant build for it Bascially there is an implementationBBM a library project,and it in it i am adding the JAR file,and i want to make the ant build for this library application from my main CLDC application ant build file, <?xml version="1.0" encoding="UTF-8"?> <project name="Building project" default="build" basedir="."> <property name="jde.home" value="D:\Eclipse3.6\plugins\net.rim.ejde.componentpack5.0.0_5.0.0.25\components" />