blackberry

Preprocessor in Blackberry (through bb-ant-tools)

人走茶凉 提交于 2019-12-12 01:47:46
问题 There is a project that has #preprocess directives. I.e. there is #preprocess directive in the beginning of a file and something like #ifdef BlackBerrySDK6.0.0 inside the file. Though it compiles well in eclipse, there are problems using bb-ant-tools. It behaves as though there is no preprocessing: compile errors on strings that should not be included. I have build.properties file; it is included through <property file="build.properties"> AND <jdp file="build.properties"> . I have

“app does not match codfile timestamp of sibling module” exception

a 夏天 提交于 2019-12-12 01:46:29
问题 My app has some png images, and when I add more images to the resource file, the compile complains "app does not match codfile timestamp of sibling module" exception. The size of .cod file is 4.74MB. If it is more then I got the exception. 回答1: It sounds like you've come up against a memory limit with the sibling COD files. Your best bet would be to bundle your resources into a separate resource-only project and to include the COD files generated by that project into your JAD. 来源: https:/

BlackBerry GPS Issue with LocationListener - Cellsite untill GPS Locks

吃可爱长大的小学妹 提交于 2019-12-12 01:46:19
问题 I am doing a BlackBerry app targeted at 5.0 and upwards. I have a class that extends Thread and implements LocationListener. I manage to get gps updates on CellSite as well as the other modes like Assisted and Unassisted. What I am really trying todo is use Cellsite while the others are not available and then switch to them once they become available. The correct route seemed through "providerStateChanged" but this never fires. Any Ideas? 回答1: Using BlackBerryLocationProvider and

How do you set the background image in a BlackBerry application using Java?

。_饼干妹妹 提交于 2019-12-12 01:35:44
问题 how i set background image in java blackberry simulator ? backgroundBitmap = Bitmap.getBitmapResource("background.png"); MainScreen mainScreen = new MainScreen(); HorizontalFieldManager horizontalFieldManager = new HorizontalFieldManager( HorizontalFieldManager.USE_ALL_WIDTH | HorizontalFieldManager.USE_ALL_HEIGHT){ //Override the paint method to draw the background image. public void paint(Graphics graphics) { //Draw the background image and then call paint. graphics.drawBitmap(0, 0, 240,

Blackberry - “[projectname].debug file is missing” and “I/O Error: Cannot find program ”jar"

孤街醉人 提交于 2019-12-12 01:13:45
问题 I'm running eclipse with the Blackberry Java Plug-in, working on a 1.4.5 Blackberry project. The project has been building and debugging in the emulator normally until I started getting: A prompt saying " [projectname].debug file is missing ". A message in the Blackberry Packaging Console saying " I/O Error: Cannot find program "jar": CreateProcess error=2. " Anyone have any ideas what could be causing this? 回答1: It turns out that there can be a few different causes. In some instances,

How to set different row height in listfield with implementing listfieldcallback()?

泪湿孤枕 提交于 2019-12-12 01:07:35
问题 This is my latest Custom_Listfield class. public class Custom_ListField extends ListField { private String[] title, category, date, imagepath; private int[] newsid, catsid; private List_News newslist; private Bitmap imagebitmap[], localimage = Config_GlobalFunction .Bitmap("image_base.png"); private BrowserField webpage; private boolean islatest; private int highest = 0; private Vector content = null; private ListCallback callback = null; private int currentPosition = 0; public Custom

how to open blackberry “Files” application by code?

喜夏-厌秋 提交于 2019-12-12 00:33:45
问题 Now I can use Invoke.invokeApplication() to invoke a system application in blackberry, such as Messages, Calendar, etc. however, I don't know how to launch "Files" application, which managers files of blackberry smartphone, and locate to a desired path. could you kindly give me an answer? thanks a lot! 回答1: here is a link that describes how to invoke a BlackBerry® Device Software application, such as the contacts application, the phone application, and the media application. 来源: https:/

fail bb-ant-tools build when jdp referenced file is missing

筅森魡賤 提交于 2019-12-12 00:31:45
问题 When I build my BlackBerry application with ant, I don't get any error messages, even though three files defined in the jdp file don't exist. How can I configure the build to fail if source files defined in a jdp file don't exist? 回答1: It is not build configuration issue. BB Ant Tools won't raise an error, if one or more of jdp properties point to a wrong resource location. If you want check the presence of a particular resource and raise error if it is not available, use another ant task

Blackberry Event Handling and Focus Issues

限于喜欢 提交于 2019-12-12 00:31:40
问题 I am having an issue with a small blackberry application where touch events are being processed by 1 of 2 certain fields that has focus. In my case, I have 2 images, one at the top (first element on the screen) and at the bottom (last element added to the screen. Both are subclasses of the BitmapField. Their purpose is to display a web site when the user taps (clicks with the trackpad/ball). The issue is when either of these has focus, no matter where the user taps on the screen (i.e. in an

how to remove KeyStore security prompt

女生的网名这么多〃 提交于 2019-12-11 23:57:49
问题 i am trying to develop an app which tries to call a https(godaddy ssl) url. i have successfully installed certificate in key store using this code. public void addCertToDeviceKeyStore(Certificate certificate) { KeyStore keyStore = DeviceKeyStore.getInstance(); // check if certificate is not already in the DeviceKeyStore if (!keyStore.isMember(certificate)) { try { String SFN = certificate.getSubjectFriendlyName(); CertificateStatus CS = certificate.getStatus(); keyStore.set(null, SFN,