blackberry

SMS between two BlackBerry simulators

≯℡__Kan透↙ 提交于 2019-12-10 20:07:14
问题 How do I write a program to send and receive SMS between two BlackBerry simulators using the BlackBerry JDE? 回答1: You need to launch the simulators from the commmand line using these parameters: /sms-source-port={uint} /sms-destination-port={uint} Launch two simulators instances and just switch source & destination ports on them! 回答2: BB KB Article: How To - Send SMS text messages between two BlackBerry Smartphone Simulators 来源: https://stackoverflow.com/questions/1403399/sms-between-two

content-type for BlackBerry OTA installation

半腔热情 提交于 2019-12-10 19:47:39
问题 For BlackBerry OTA installation what content-type should be used for jad and cod files? 回答1: From http://www.oracle.com/technetwork/systems/index-139239.html the MIME types for .jad and .cod files, text/vnd.sun.j2me.app-descriptor and application/vnd.rim.cod respectively. 回答2: Add the following to a .htaccess when using apache for your OTA deployment: AddType text/vnd.sun.j2me.app-descriptor .jad AddType application/vnd.rim.cod .cod AddType application/java-archive .jar 来源: https:/

Where to get BlackBerry CSK File for PhoneGap?

本小妞迷上赌 提交于 2019-12-10 19:43:26
问题 I want to use PhoneGap to sign my BlackBerry App. When I go to add the key files it asks for a CSK file. I went to https://www.blackberry.com/SignedKeys/ and requested keys. However the files sent to me were 3 different CSI files(RBB, RCR, RRT). How and where can I get the CSK and DB file needed to sign apps on PhoneGap? 回答1: First you need to install the blackberry SDK (as part of Eclipse if you're using this IDE, otherwise get the standalone java one). Then follow these steps. Basically

What's the best way to get rid of nested ifs in code while checking for conditions?

点点圈 提交于 2019-12-10 19:35:18
问题 I'm developing a BlackBerry app in Java and I have an Options class where all user settings are stored. The problem is I need to check some conditions in order to know how to react. As I keep adding more features, more GUI options are shown to the user, more settings are stored in the Options class and more conditions need to be checked for. Take the following code for example: private void doCallMonitoring(int callId){ /*This is the part that I want to avoid. Having multiple nested ifs. Here

Ksoap Parsing Query

╄→尐↘猪︶ㄣ 提交于 2019-12-10 18:58:46
问题 I able to get my complex class response using ksoap2 now the repsonse i am getting is in the xml form Can anybody help me out how to parse this Ksoap response??I have read on the forums to add mapping for it i have added the mapping too .Can i use the XML parsing technique to parse this.Please provide me a suitable approach. Thanks 回答1: use this xml parsing code and parse: public class xmlparsing extends UiApplication implements ListFieldCallback, FieldChangeListener { public static void main

How do I detect the 'delete' key in my Field subclass?

一笑奈何 提交于 2019-12-10 18:35:11
问题 I'm trying to detect and override the Delete key on the Blackberry keyboard. For some reason, it never makes it inside my case statement as when it hits that point: Keypad.key(keycode) == 8 Keypad.KEY_DELETE == 127 What's my error? public class MyField extends ListField implements KeyListener { // ... /** Implementation of KeyListener.keyDown */ public boolean keyDown(int keycode, int time) { boolean retval = false; switch (Keypad.key(keycode)) { /* DELETE - Delete the timer */ case Keypad

Android and Blackberry project in eclipse

妖精的绣舞 提交于 2019-12-10 18:32:09
问题 I'm fairly new to android and have only really been using eclipse for some basic Blackberry work so I was curious if I could pick a few expert's minds for any suggestions/pointers on the workspace/project setup you use for dual platform support projects in eclipse? I've found about 80% of my code is common between Blackberry and Android so it's this 20% I'm needing to address. My current thinking is to have one workspace with shared source in multiple projects via setting them in the source

What is the format for individual frames in the RIMM streaming file format

你说的曾经没有我的故事 提交于 2019-12-10 18:27:26
问题 I am trying to capture some video frames from a BlackBerry device and operate on them as images (specifically to do barcode decoding). I have found some sample code and a spec document which demonstrates how to use the J2ME MMAPI classes to stream video from the device's camera both to a file and to an output stream. The streaming file is in RIM's proprietary "RIMM streaming file" format. http://docs.blackberry.com/en/developers/deliverables/17968/RIMM_streaming_video_file_1026511_11.jsp#RIM

Debugging blackberry application in eclipse “source not found” problem

纵然是瞬间 提交于 2019-12-10 17:27:28
问题 I am debugging an application in Eclipse. It works fine but at some methods, for example enterEventDispatcher() , it shows me source not found. Which source files should be attached to avoid this problem? I am not getting it clearly. 回答1: It sounds like you are trying to debug into the RIM BB OS code. As far as I am aware, RIM does not provide the source code for their API, so there is no source to attach. 来源: https://stackoverflow.com/questions/5949532/debugging-blackberry-application-in

How to give blackberry application all the available permission?

跟風遠走 提交于 2019-12-10 17:25:56
问题 I'm developing using JDE 4.5 which doesn't contain the PERMISSION_RECORDING, and it's denied by default in 4.6 and higher devices. So I want my application to have this permission or all the possible permissions that it can get. Thanks in advance. 回答1: You can't set app permissions pro grammatically. What you can do is force Request Permission dialog to appear, see How to - Display custom messages in the request permission dialog So what you can do is do some test recording on application