blackberry-jde

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

Module attempts to access secure API: RIM Blackberry

▼魔方 西西 提交于 2019-12-23 05:34:15
问题 I used the "Sign with Signature Tool" in Eclipse to sign my app. I see that signer ids RRT, RBB and RCR are all signed for the cod files (JRE version 4.5). I try to deploy to a 5.0 device and I see the "Module attempts to access secure API" error. What am I missing? 回答1: How did you deploy it to device? You should consider using javaloader load myfile.cod in cmdline or BlackBerry - Load Project(s) on device in eclipse 回答2: Did your app request the needed permissions? You'll need something

Blackberry json parser

心不动则不痛 提交于 2019-12-13 08:26:14
问题 I want to create a simple json parser for BlackBerry to test. I found this example, and implement my code as follows import java.io.ByteArrayOutputStream; import java.io.InputStream; import java.util.Vector; import javax.microedition.io.Connector; import javax.microedition.io.HttpConnection; import org.json.me.JSONArray; import org.json.me.JSONObject; import net.rim.device.api.ui.component.Dialog; import net.rim.device.api.ui.container.MainScreen; public final class MyScreen extends

Which build to be considered for use when a preprocessor is used

帅比萌擦擦* 提交于 2019-12-13 04:40:51
问题 I have a project which needs to be used in 4.6 and 5.0 versions of blackberry. I have run same code in both the 4.6 and 5.0 versions with some preprocessor directives attached to the code (#ifndef statements which i need to use for 5.0 as facebook sdk is not supported in 4.6 version) I have 2 .cod files ( one for 4.6 and other for 5.0) they work as needed in their respective simulators. But, when i load the .cod file of 4.6 into 5.0 ... (it treats it as the code inside preprocessor as comment

Connection Timeout in Blackberry

这一生的挚爱 提交于 2019-12-13 03:26:16
问题 How to set Connection timeout in blackberry while fetching data using HttpConnection from url? I was passing ConnectionTimeout parameter in url but not working When there is no network,blanck screen should be displayed along with network error message. 回答1: From here: From DB-00526: Note: The ConnectionTimeout parameter is not supported by direct TCP connections or connections through a Wireless Application Protocol (WAP) gateway. Only TCP connections, made through the BlackBerry MDS

BlackBerry App World Distribution of .jad files

假如想象 提交于 2019-12-12 17:27:43
问题 I am developing an app using Eclipse Plugin with BlackBerry JRE 4.5 to support devices with OS versions 4.5 and higher. I understand that when you use a JRE version lower than 4.7 and you deploy the app to a 4.7 device or a 5.0 device, the app will run in compatibility mode and as a result the virtual keyboard would appear. I followed this document to avoid running my app in compatibility mode. I was able to generate the .JAD files for version 4.7 only after I built the app with JRE 4.7. I

Get HTML response after sending POST data via BlackBerry

感情迁移 提交于 2019-12-12 17:22:28
问题 I need to read an HTML response from a URL after sending it POST data. I already have the following two functions but I don't know how to combine them so that I can send POST data AND get the response. This function gets a standard HTML response: public static String getDataFromUrl(String url) throws IOException { System.out.println("------------FULL URL = " + url + " ------------"); StringBuffer b = new StringBuffer(); InputStream is = null; HttpConnection c = null; long len = 0; int ch = 0;

Blackberry - “you currently have no new notifications”

谁说我不能喝 提交于 2019-12-12 16:23:46
问题 I'm using the code below (especially pushMessage method) to show some notification to user: public final class MyApplicationMessageFolder { public static final long MyFolderId = 0x1256789012F10123L; private ApplicationMessageFolder folder_; private ApplicationIndicator indicator_; private MyReadableListImpl collection_; public void pushMessage(String subject, String message) { try { if (collection_ == null) { collection_ = new MyReadableListImpl(); } if (indicator_ == null) {

How to make background of BrowserField transparent in Blackberry

无人久伴 提交于 2019-12-12 14:20:06
问题 I am using BrowserField component of RIM BB . It is right now displaying a white background. I want make a transparent background, so it could match with the Manager's background color. I had tried with below code. But it's not working. BrowserField contentField = new BrowserField(); bgTransparent = BackgroundFactory.createSolidTransparentBackground(0xffffff, 0); contentField.setBackground(bgTransparent); How to solve this? 来源: https://stackoverflow.com/questions/12421300/how-to-make

Blackberry - Consume .Net Soap Service

北慕城南 提交于 2019-12-12 02:29:59
问题 I am new to blackberry app development and was wondering if someone could point me in the right direction(and may be a sample application) of how to consume web service in native apps. I'm using Blackberry JDE plugin for Eclipse. I am able to consume a restful webservice, but now I want to consume a SOAP service. I am new to eclipse , so I would require in detail information. Thanks, 回答1: I followed this none-ksoap2 route and it worked well for me: http://www.johnwargo.com/index.php