blackberry-jde

blackberry tableview solution for jde 4.5

北战南征 提交于 2019-12-12 01:49:39
问题 I am very new to blackberry table view. I am using jde 4.5. Can anyone please which is best way to show by this forum : http://devblog.blackberry.com/2009/10/how-to-use-table-view-layout/ or Customize ListField I want a structure like below Text Text | ButtonField Text | ButtonField Text --------------------------------- Text Text | ButtonField Text | ButtonField Text Thanks in advance Regards, Sathish 回答1: You can use the new TableModel class in OS 6. There is sample code and explanation on

ant build failed xxx\xxx\build.xml:49: Java returned: -1

﹥>﹥吖頭↗ 提交于 2019-12-11 20:20:46
问题 I am trting to build Blackberry project and generate the cod file. My environment is Windows 7 and the apache-ant version is 1.8.2. I have encountered two problems and they all lead to failure. The command I used to build is "ant -Dbuild_env=prod" Below is part of the code in the build.xml file. <property file="build.properties" /> <property environment="SystemVariable"/> <!--<property name="jde.home" value="${SystemVariable.JDE_HOME}"/> --> <property name="jde.home" value="E:\eclipse

Blackberry cfg file not found when device connects to computer and Desktop Manager open

痴心易碎 提交于 2019-12-11 08:49:43
问题 I am storing all the config details to a test.cfg file in my BlackBerry device. So every time when i start the application, the app will check if test.cfg exists. If it exists, then it loads all the configuration from that file and if not, the app will show the config page, then the user can enter all the config details and proceed further. The above is working fine except one scenario. When the device is plugged in to the system and I open the Desktop Manager and the user opens the

BlackBerry - Unable to get a file with REM extension

送分小仙女□ 提交于 2019-12-11 07:52:47
问题 As part of the application, we are creating a file myApp.cfg in "file:///store/home/user/" location on the device. I have enabled encryption (Option| Security | Encryption | Encrypt). However, the file is not getting encrypted. I dont see a file myApp.cfg.rem. This is happening in the client environment though. What am I missing? Thanks Krish 来源: https://stackoverflow.com/questions/18381352/blackberry-unable-to-get-a-file-with-rem-extension

One build for two different versions (4.6,4.7 and 5.0+above) in blackberry

和自甴很熟 提交于 2019-12-10 14:48:22
问题 I want to import facebook libraries for blackberry 5.0 and above and don't want to import those libraries for 4.6 and 4.7. I tried to use preprocessors for 4.7 and above by following below link: http://smartfone-more.blogspot.in/2010/05/coding-for-multiple-blackberry-devices.html now its working fine with JDE 4.7 but not getting expected result for 5.0. Please find the code below which i tried: //#ifdef JDE_4_7_0 import net.rim.device.api.ui.component.ButtonField; //#else import net.rim

Return the correct value from a JavaME thread

橙三吉。 提交于 2019-12-10 12:15:53
问题 I wrote a function which returns a string. And there is a Thread implementation the function, like follows, and I am calling [metaDataTrimmed = getMetaData(url);] this function and store the return value to a string value. My problem is the the function immediately returns the null string, which is its initial value. And I checked my function works properly. So I try for a Thread.sleep() method using a dirtybit and also tried for Thread.join(). Is there any standard method in BlackBerry to

Not Listen PhoneListener after Abnormal Termination in Blackberry

廉价感情. 提交于 2019-12-10 12:14:35
问题 I am working on application that tracks the InComing/Outgoing calls & save calls records into Database. Yesterday I seen a scenario In which application is terminated by OS & a warning message pops Up (Error: Application is not responding) . After application is terminated by OS. Application is not able to listen In Coming/Outgoing calls again. I think, Application Phone Listener is unregistered by abnormal application termination. Os calls System.Exit(0) for application termination If I

avoid showing menu on button click

会有一股神秘感。 提交于 2019-12-10 04:36:03
问题 In my application there is a button and when the button is clicked the context menu pops up. How can I avoid having the context menu show up? protected void makeMenu(Menu menu, int context){ menu.add(_imageMenuItem); super.makeMenu(menu, context); } class ImageMenuItem extends MenuItem { ImageMenuItem() { super("Login Screen", 0, 0); } public boolean onMenu(int i) { return false; } public void run() { UiApplication app = (UiApplication) getApplication(); app.pushScreen(new LoginScreen()); } }

How to programatically reboot a BLACKBERRY device?

£可爱£侵袭症+ 提交于 2019-12-08 05:08:30
Is there an API that will allow you to reboot the blackberry device? Look at using the requestPowerOff() method in the Device class. Edit: Ok, here's some sample code. To get the device to turn on again you have to schedule another application to run at some point in the future. You'll probably want to write an application that doesn't show anything to the user and schedule that. However, I happened to have the module name for the video recorder on me so I bring that back up. Device.requestPowerOff(true); int handle = CodeModuleManager.getModuleHandle("net_rim_bb_videorecorder");

How to run BlackBerry application in Background

怎甘沉沦 提交于 2019-12-08 04:32:24
问题 I am working on a BlackBerry Application which requires the application be running once its sent to the background also. I would really appreciate it if someone could guide me to any tutorials related to running background services in BlackBerry. 回答1: Background Application is a kind of process so you should extend Application instead of extending Uiapplication . In your main class implement all your code. You can also see this StackOverflow question for an example: Blackberry - Running