blackberry

authentication username password url in blackberry

北战南征 提交于 2019-12-25 05:06:57
问题 I'm setting up a connection to a site which requires a username and password but it doesn't connect and I don't know the reason can you help me with this please? This is the code I'm using { HttpsConnection connection; connection = (HttpsConnection) Connector.open(url + getBlackBerryConnectionParams()); connection.setRequestProperty("Authorization", "Basic" + new String(getEncode())); } public byte[] getEncode() { String login = "user:@@iPass"; byte[] encoded = null; try { encoded =

How does one implement a push service for a BlackBerry app? [closed]

谁说胖子不能爱 提交于 2019-12-25 04:55:25
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 4 years ago . Can someone refer me to a good tutorial or starting point for implementing a push service for BlackBerry apps? I've read about the basic idea of a push service. I need some sample to code to start with. 回答1: Look in the JDE folder, there is a sample folder where you can find a nice code sample. It's called

Push message not received in device

半腔热情 提交于 2019-12-25 04:51:05
问题 I am struggling for long with push messaging in BlackBerry. I am able to register successfully for push messaging with a returned code of rc=200 . However, when I run the server side code, be it in PHP or .Net, I get a successful returned code but the device never receives the message. My PHP code is as follows: <?php ini_set('display_errors','1'); error_reporting(E_ALL); // APP ID provided by RIM $appid = '3385-xxxxxxxxxxx'; // Password provided by RIM $password = 'xxxxxx'; //Deliver before

Sign blackberry application with phonegap ant tool

≯℡__Kan透↙ 提交于 2019-12-25 04:46:10
问题 I want to sign my blackberry application with ant tool of phonegap, so I can try it on my device. I made the 2 signature file (sigtool.csk & sigtool.d , right !?) from the 3 .csi, and put them in the build.xml folder. But when I launch 'ant load-device', I've got an error because ant can't find signing key ... [exec] [ERROR] Cannot sign application - failed to find signing keys Where should I put them ? 回答1: On Succesful installation of 3 .cis files, which you have received from RIM. You

Build specific BlackBerry project in Eclipse workspace

爱⌒轻易说出口 提交于 2019-12-25 04:40:06
问题 I have a workspace in Eclipse containing two BlackBerry projects. I started the workspace with the first project and later added the second project. Now I wanted to build and run the second project, but Eclipse keeps starting the first project in the BlackBerry simulator. When I close the first project and try to run the second one again, I get the error message "Launching DebugServer has encountered a problem. Resource FIRST PROJECT is not open." I think I have to configure Eclipse

BlackBerry - Why is this BrowserField disappearing from the screen after this change listener?

心不动则不痛 提交于 2019-12-25 04:28:41
问题 I'm stuck trying to implement a sliding menu in BlackBerry. The code for the slide works fine, but I don't know what is wrong with the browserfield. After the first click received by the button, the browserField is deleted from its manager, so I guess the problem starts with the FieldChangeListener code. This is the full code of my screen: public final class MyScreen extends MainScreen { boolean val=false; private BrowserField contentField; public MyScreen() { final ButtonField l=new

Unexpected Behavior of File picker Blackberry

走远了吗. 提交于 2019-12-25 04:19:31
问题 I am working on File picker from image gallery thats working fine in my 9850 os 7 but when same app if I am deployin to 9780 Os6 Bold device it's not working. public final class MyScreen extends MainScreen implements FieldChangeListener { Bitmap bitmap; ButtonField click; BitmapField bitmapField; public MyScreen() { setTitle("FilePicker Screen"); createGUI(); } private void createGUI() { add(new LabelField("Click to select the image", Field.FIELD_HCENTER)); click=new ButtonField("Click");

ambiguous of the custom_buttonfield

大兔子大兔子 提交于 2019-12-25 04:11:55
问题 This is the original button image. The background of the button was transparent. When apply into apps, the button look like this. Please look at top left the button. The background of the button became gray instead of transparent. Here is the Android version's button. Not only the button but also all same type of buttons which background was transparent. The custom_buttonfield public class Custom_ButtonField extends ButtonField { Bitmap mNormal; Bitmap mFocused; Bitmap mActive; int mWidth;

BlackberryPreprocessBuilder and BlackberrryResourceBuilder Missing

泪湿孤枕 提交于 2019-12-25 04:06:32
问题 I am using Blackberry eclipse java plugin 1.5 I am not getting BB development environment. Preprocessor directives supported by the RIM compiler and Using preprocessor directives in BlackBerry JDE plugin for eclipse? I used those links but not working.. Plaese help 回答1: My recommendation is to use this latest download of Eclipse & the plugin. BlackBerry tools are not very good, so I find it best to use a dedicated Eclipse, only for BB dev. I have found that this download is working well for

Is it possible to save BBM chat in a text file using J2ME in Blackberry

不羁岁月 提交于 2019-12-25 04:05:46
问题 As far as i know, i can use javax.microedition.io.file.FileConnection for the required purpose. But i need an example. Why i can't i use java.io.FileOutputStream , and use this piece of code instead: FileOutputStream fout; try { // Open an output stream fout = new FileOutputStream ("myfile.txt"); // Print a line of text new PrintStream(fout).println ("I'm making an app on android!"); // Close our output stream fout.close(); } // Catches any error conditions catch (IOException e) { System.err