blackberry-simulator

how to manually add simulators in blackberry eclipse?

左心房为你撑大大i 提交于 2020-01-24 15:16:08
问题 Is there any way to add a simulator manually in my eclipse? In android SDK,we have options for selecting various emulators.Likewise,is there any way so that I can choose any one from the various simulators available? 回答1: Yeah, it can do it. Download simulators from RIM's Software Download for Device Simulators page and you can see how to add them from the support forum thread: how to add another simulator to eclipse 回答2: As Ajmal said when you install a simulator it will be added to your

BlackBerry read json string from an URL

╄→尐↘猪︶ㄣ 提交于 2020-01-17 14:45:47
问题 I tried to read a json string loading from an URL, but I could not find complete code sample. Can any one provide or point me to a complete client code. I'm newer to BB development. this is what I have done but still can't get it work please help me. Thanks! 回答1: To read and parse data from an URL you need to implement two routines. First one of them will handle reading data from the specified URL over HTTP connection, and the second one will parse the data. Check the following application

removing the default blue color on focus

∥☆過路亽.° 提交于 2020-01-15 06:33:11
问题 I have a created a custom Button field , when the button is on focus default blue background is coming , i want to remove that blue background . actually i am placing image on button and on image there are certain area which is transparent . when that custom button is on focus then blue background is displayed . i want to remove that blue background. Thanks alot 回答1: Override method protected void drawFocus(Graphics graphics, boolean on) { if (on) { //draw your own custom focus. } } 回答2:

Blackberry BrowserField error in Simulator

与世无争的帅哥 提交于 2020-01-06 03:36:25
问题 I am new to Blackberry development and Im trying to simple get a BrowserField working. I get this errormessage: Tried reinstalling JDE etc. etc. but the app always gets an error when I run it on the simulator.. Any ideas? Here is my code: package mypackage; import net.rim.device.api.browser.field2.BrowserField; import net.rim.device.api.ui.UiApplication; import net.rim.device.api.ui.container.MainScreen; /** * This class extends the UiApplication class, providing a graphical user interface. *

Blackberry Apps - Importing a code-signed jar into an application project

余生颓废 提交于 2019-12-28 16:08:48
问题 I'm working on a library project that Blackberry Java developers can import into their projects. It uses protected RIM APIs which require that it be code-signed, which I have done. But, I can't get my Jar imported and working with a simple helloWorld app. I'm using the eclipse plug-in Blackberry-JDE. EDIT : Solution found.... since I found the solution I removed the things I've tried, leaving only the solution ... BUILDING THE SDK/Libary (use BB-ANT-TOOLS, either in eclipse or standalone)

Blackberry Bluetooth sample program for communication between two mobile devices

被刻印的时光 ゝ 提交于 2019-12-25 16:44:56
问题 I am a blackberry developer and do want to code to transmit and receive information between two devices using bluetooth . https://github.com/blackberry/JDE-Samples/tree/master/com/rim/samples/device/bluetooth/bluetoothdemo I referred this program of bluetooth demo which Takes info of bluetooth serial ports available in AppScreen and finds if they are supported or not The SPPScreen java file takes info of bluetooth serial port and connects to serial port whose device id is " Hi there " This

Two titile bars on a single screen in BlackBerry

為{幸葍}努か 提交于 2019-12-25 07:59:06
问题 I am trying to build a screen in BlackBerry. In which there should be a second title bar just below the original title bar. Also the second title bar should be fixed and it should not be scrolled with vertical scroll. Need some advice on this issue. 回答1: You can add the second title and the original title bar on a VerticalFieldManager. Then just set that VerticalFieldManager as title, as it's possible to set any Field , Manager instance as title. Check public void setTitle(Field title) and

How to get package name using blackberry

﹥>﹥吖頭↗ 提交于 2019-12-25 05:25:45
问题 I am new to blackberry development, Is it possible to get package name of the application which is installed in device. I din't get any reference for this. int[] handle = codeModuleManager.getModuleHandles(); for(int i=0; i<handle.length; i++){ ApplicationDescriptor[] app_descriptors = CodeModuleManager.getApplicationDescriptors(handle[i]); if(app_descriptors != null){ System.out.println("app_descriptors length "+ app_descriptors.length); for(int j=0; j< app_descriptors.length; j++){ System

BlackBerry 10 Cascades - Running app on the simulator

旧城冷巷雨未停 提交于 2019-12-24 20:44:29
问题 I am new to blackberry development and ran into this problem several times and cannot find a solution. When I try to run an empty cascades project just with a simple HelloWorld label I get the following error Deployment Failed: Info: Sending request: Install and Launch Info: Action: Install and Launch Info: Debug native: on Info: File size: 190910 Info: Installing com.example.HelloWorld.testDev__HelloWorld7d1bfe91... Info: Processing 190910 bytes I'm using Momentics, VMware running BB10 Dev

Checkbox with a ObjectListField not focusable and checkable?

瘦欲@ 提交于 2019-12-24 20:28:22
问题 I am trying to create a checkbox and below this objectlist is there. I am trying to focus on checkbox but it is niether focusable nor checkable .The focus stands on the first element of the list below. How I can focus the checkbox as well as making it checkable? Here, checkbox is in a VerticalFieldManager in which I am adding the list. Here I am adding two things:one is Horizontal Field Manager(onlineCheckBoxHfm) and other is objectListField(buddyList). Now problem is, default focus is on