blackberry

Blackberry OTA downloader using Servlets

三世轮回 提交于 2019-12-23 03:44:09
问题 I want to setup a Blackberry OTA downloader using Servlets. How do I set the URL for .jad and .cod files? I have set the content type for both files. How do I send both files to the client when I receive a request from the client? Do I need to create two servlets or is one enough? 回答1: You don't necessarily need a servlet for this. A servlet is only useful if those files are dynamically generated or are not directly public accessible (i.e. those files are not in public webcontent). The

Can we use generic or collection classes in blackberry app development

痞子三分冷 提交于 2019-12-23 02:58:09
问题 I am a newbie in blackberry app development. I am making a Blackberry Project using BB JRE 5.0. And i want to integrate another project into it which is working fine with J2SE 1.5. How can i achieve this. Is it possible? If no, then how to use generic and collection classes in blackberry development. means which BB JRE supports collection and generic classes. Please suggest me some alternative, i ll be very thankful to you all. Thanks in Advance. 回答1: BlackBerry Java SDK does not support

Custom Pop up with no Black background in blackberry

若如初见. 提交于 2019-12-23 02:52:38
问题 I want to remove the black background in Popup field i know we use applyTheme method in blackberry to subdue its effect but dunno how to use it I want to remove the black background and use an image instead . I have tried this method protected void applyTheme(Graphics arg0, boolean arg1) { // TODO Auto-generated method stub super.applyTheme(arg0, arg1); } 回答1: public class CustomDialogBox extends PopupScreen { Bitmap mDialogImg=null; public CustomDialogBox(Bitmap dialogImg) { super(new

Run BlackBerry application on startup, and add notification that it is running in the background

余生颓废 提交于 2019-12-23 02:52:36
问题 I want to write a Java BlackBerry application that runs on startup and stays running in the background, but gives the user an indication that it is running with an icon in the corner of the homescreen. What techniques can I use? 回答1: For showing content on the home screen / status bar, see this thread. You can either have different states on your own application icon or add a notification in the BB status bar. All is explained there. 回答2: right click on blackberry project ->properties-

Make header and footer static in BlackBerry

谁都会走 提交于 2019-12-23 02:38:22
问题 How can I make header and footer on a BlackBerry screen with scrollable content in between? 回答1: If you make your screen out of a MainScreen, then you can use setTitle(Field f) and setStatus(Field f) to create the header and footer, respectively. 来源: https://stackoverflow.com/questions/4063979/make-header-and-footer-static-in-blackberry

Enable generics in blackberry jde 4.5.0

别来无恙 提交于 2019-12-23 02:37:07
问题 When i compiled my application in blackberry it shows the following error. generics are not supported in -source 1.3 (use -source 5 or higher to enable generics) how to solve this 回答1: Java 1.3 is barbaric and no one should ever have to suffer its indignities. Fortunately, there is a solution! Generics, enums, changing return signature in overrides, and pretty much everything that makes java usable was introduced in java 1.5. (see http://en.wikipedia.org/wiki/Java_version_history).

Blackberry plugin for eclipse?

瘦欲@ 提交于 2019-12-23 02:34:54
问题 As i am developing an where app where i need to integrate BBM in it. As per the following instructions of integrating BBM, i followed the steps & downloaded BB Plugin for Eclipse. Here by default i got BB 7.1 SDK with that eclipse which i downloaded. Now i want to install BB 5.0 & BB 6.0 to that eclipse. As per details i got from internet i followed the following steps of installing these SDK's In eclipse Help --> Install New Software --> in Add Repository i gave name & location as Name -->

how to upload the file through http to the website? (Blackberry)

流过昼夜 提交于 2019-12-23 02:18:22
问题 I need to upload a file through http or ftp to the website in blackberry jde. 回答1: High level view: You open an OutputStream from an HttpConnection and write your data into that output stream. The main problem is going to be choosing which network connection to use (I recommend looking at this, unless you're on OS 5.0 which has a similar feature built in). As to uploading through FTP that will be somewhat more difficult as there is no support for FTP built into the BlackBerry API instead you

Strange BlackBerry log

不羁岁月 提交于 2019-12-23 01:45:38
问题 I am using the code below , as part of my push notifications implementation: private static final String BPAS_URL = "http://pushapi.eval.blackberry.com"; private static final String APP_ID = "3582-M4687r9k9k836r980kO2395i32i66y11a34"; String registerUrl = formRegisterRequest(BPAS_URL, APP_ID, null) + ";deviceside=false;ConnectionType=mds-public"; System.out.println("\n\n\n !!msg registerBPAS URL is: "+ registerUrl + "\n\n"); where : private static String formRegisterRequest(String bpasUrl,

White screen is displaying while loading local HTML files in Browser Field?

回眸只為那壹抹淺笑 提交于 2019-12-23 00:52:08
问题 I am using BrowserField to display some local HTML files in my application. It is displaying the HTML files properly. But while starting of the screen it is displaying some white screen (background). How can i get rid of this issue? I am using the below code: BrowserFieldConfig _bfConfig = new BrowserFieldConfig(); _bfConfig.setProperty(BrowserFieldConfig.NAVIGATION_MODE,BrowserFieldConfig.NAVIGATION_MODE_POINTER); _bfConfig.setProperty(BrowserFieldConfig.JAVASCRIPT_ENABLED, Boolean.TRUE );