blackberry

Can you integrate Java 1.6 classes into Eclipse Blackberry project?

徘徊边缘 提交于 2019-12-12 04:44:43
问题 I am using the latest IDE for eclipse and have attached the blackberry 5.0 sim. i am a new bb developer and i was wondering if there is any way of integrating java 1.6 classes (or any 3rd party jars) within the blackberry project without getting an error similar to the following: org.apache.axis2.util.Utils$3: Warning!: Duplicate method only differs by return type: run org.apache.axis2.jaxws.util.WSDL4JWrapper: Warning!: Duplicate method only differs by return type: getFirstPortBinding C:

Blackberry Install background service from UI application?

一个人想着一个人 提交于 2019-12-12 04:43:43
问题 Hi i need to create an uninstallable background service that would run from application, if the user is registered otherwise wait until it will receive my condition to get installed? 1 ) how to create an uninstallable background service? 2 ) how to install it by user registered condition? I would really appreciate the help! Thanks in advance. 回答1: Note that any, even system .cod file, can be uninstalled via javaloader.exe utility that comes with JDE distribution package. Or via any

Blackberry - get image data from bitmap

两盒软妹~` 提交于 2019-12-12 04:38:55
问题 how to get image data from a bitmap image ? i searched, but i cant find a solution int height=bmp.getHeight(); int width=bmp.getWidth(); int[] rgbdata = new int[width*height]; ByteArrayOutputStream bos = new ByteArrayOutputStream(); DataOutputStream dos = new DataOutputStream(bos); //Graphics g = new Graphics(bmp); bmp.getARGB(rgbdata,0,width,0,0,width,height); for (int i = 0; i < rgbdata.length ; i++) { if (rgbdata[i] != -1) { dos.writeInt(rgbdata[i]); dos.flush(); } } bos.flush(); 回答1: Try

About CustomButtonField in blackberry

梦想的初衷 提交于 2019-12-12 04:30:55
问题 Suppose I had a custombuttonField which contains 2 bitmap pictures, say 2 arrows(one in left and the other in right) and when the user clicks on this button the color of the arrow should become red in my application. I m doing this by pushing the same screen on click evevt. I m using a int variable pic_status which determines which picture should be loaded on the custombutonfield on calling the pushScreen() . Is there any way to update the customButtonField (update the bitmap) from the same

Align checkbox to the right on Blackberry

淺唱寂寞╮ 提交于 2019-12-12 04:27:43
问题 I need to align a CheckboxField to the right of a fixed text (on Blackberry) like the "manage connections" dialog. The code is: final HorizontalFieldManager hfm = new HorizontalFieldManager(USE_ALL_WIDTH); hfm.add(new LabelField("Test me please", LabelField.ELLIPSIS | FIELD_LEFT | FIELD_VCENTER | USE_ALL_WIDTH)); cbx = new CheckboxField(null, false, FIELD_RIGHT | CheckboxField.NO_USE_ALL_WIDTH); hfm.add(cbx); I tried various combinations of "USE_ALL_WIDTH", "NO_USE_ALL_WIDTH" and similar

possible to get default browser history in my application in blackberry

天涯浪子 提交于 2019-12-12 04:08:38
问题 I have created my own browser, but I want to get default browser history. 回答1: The title says default browser: No, there is no way to programmatically access the default browser history. The content says "my own browser": with a BrowserField you can use the eventOccurred method to get the destination URL and build your own history. 来源: https://stackoverflow.com/questions/4722594/possible-to-get-default-browser-history-in-my-application-in-blackberry

blackberry location-based services

試著忘記壹切 提交于 2019-12-12 04:08:13
问题 Can anyone please inform me how to work with blackberry location-based services? i am working on a project for a blackberry mobile application. i never had a blackberry before and i dont have a contract with any provider (just have a sim card from 3 and mobile device 9000 OS 4.6). In the project i am currently trying to use the following code in order to retrieve the coordinates of current location (startpoint) and destination location (endpoint). It works just fine on the simulator but on

Unable to install application on BlackBerry due to Error 907

社会主义新天地 提交于 2019-12-12 04:05:17
问题 I am presently developing a PhoneGap application ( targeting BlackBerry OS 6/7 ).The application runs fine on the Ripple Emulator, and builds OK on the PhoneGap Build Service. When I try to install over-the-air from PhoneGap build on a physical test device ( a BlackBerry Curve 9300 ), I constantly get variations of the "907 error" - invalid Jar / Invalid cod etc. I have also tried to install from my own server, with a JAD that I created and verified, and with MIME types correctly set - with

Search bar on top of the mainscreen blackberry

五迷三道 提交于 2019-12-12 03:19:36
问题 I want to make one search bar on top of the mainscreen and this search bar should include one editfield and one image of search icon. Please help me... Thanks, in advance 回答1: You need to use an HorizontalFieldManager to put editfield and image on the same line. Read here http://www.blackberry.com/developers/docs/6.0.0api/net/rim/device/api/ui/container/HorizontalFieldManager.html and here: http://www.androidadb.com/class/ho/HorizontalFieldManager.html , a simple example showing how adding

How to get redirect url on blackberry

假如想象 提交于 2019-12-12 03:10:09
问题 I play a video url using streaming player on blackberry. If the url returns "200" status code it play successfully. When i pass the below url, it returns "302" http status code.It won't play on streaming player. http://belointr.rd.llnwd.net/KGW/ea398ac7b03a91c2ddf451f1fd7e3ef87f19da59_fl9.mp4?x-belo-vsect=kgw-basketball When i check the statuscode for 302 its says redirect url. When i pass the url on browser, it calls automatically below the redirect url. http://belointr.vo.llnwd.net/kip0/