blackberry

Upload Image using blackberry

≯℡__Kan透↙ 提交于 2019-12-11 13:54:23
问题 I want to upload an image in blackberry simulator using MultipartPostData, the following is my code but it does not seem to work. I have also signed my .cod file. Can anyone help me please? public void postData(String Url, bytes[] data) { if (DeviceInfo.isSimulator()){ Url=Url+";deviceSide=true"; } HttpConnection httpConn=null; OutputStream os=null; InputStream is=null; String url=Url; try { PostData form = new MultipartPostData(MultipartPostData.DEFAULT_CHARSET, false) ; byte [] postData =

Blackberry - how to add fields to listfield?

妖精的绣舞 提交于 2019-12-11 13:54:01
问题 I am using ListField but encouter a problem. How can i view it as i wish (not one by one)? For instance, there is item1, item2, item3. Can i jump from item1 to item3 directly, ignoring item2 ? In another way, how to insert a text field (a labelfield, for example) into the ListField items? like this: item1 a textlabel item2 item3 ...... let me describe it in another way: that is, how to insert a text field(a labelfield,for example) into the ListField items. like this: item1 a textlabel item2

List WiFi access points

喜你入骨 提交于 2019-12-11 13:38:46
问题 I am creating an application which lists the available WiFi connections. Then user can select the appropriate WiFi connection for any network communication. I saw plenty of links but nothing is useful. One says that using the HotspotClient class can get available networks. But I can't find any useful methods in that class. I used following links http://supportforums.blackberry.com/t5/Java-Development/How-to-scan-for-available-networks-for-device-from-application/m-p/519179/highlight/false

BlackBerry - Background bitmap doesn't fit for scrolling page

纵然是瞬间 提交于 2019-12-11 13:24:07
问题 I have a background bitmap in my Blackberry application screen. Screen has scrolling enabled as i must to have a scroll. The problem which i'm facing is, when i scroll down the page, background bitmap doesn't fit for the scrolled page, rather it shows just plain white background. Do we need to draw the background bitmap for every scrolling page? My bitmap size is: 360 * 480 Updated code is: class BGVerticalFieldManager extends VerticalFieldManager { Bitmap mBgBitmap = null; int mBgWidth = -1;

Does the BlackBerry Java SDK support 1.5 syntax?

十年热恋 提交于 2019-12-11 13:23:58
问题 Does the BlackBerry Java SDK support 1.5 syntax? If not, has there been any hints that this is something that could be coming? 回答1: Blackberry is based on Java ME which is JRE 1.3. I would love Sun/Oracle to bring Java ME up to JRE 1.5 but I know of no effort to do that at present. 回答2: Can you use retroweaver to make a 1.4 version of your Java 5 code? 来源: https://stackoverflow.com/questions/2389940/does-the-blackberry-java-sdk-support-1-5-syntax

Searching in a list field containing checkboxes

℡╲_俬逩灬. 提交于 2019-12-11 13:01:13
问题 I want to implement similar functionality as in an address book of any android device with an addition of checkboxes in the list. But I want to implement it in BlackBerry and the support has to be given from OS 4.5+ . The screen should contain a search text field for searching names. Below the text box should be a list field with checkboxes with the names. As I type in the search field, with every letter added or deleted, my list should show the relevant names and I should be able to check or

Blackberry Network connection

雨燕双飞 提交于 2019-12-11 12:43:08
问题 Trying to connect via Wi-Fi and I have an issue with the OS6 cd variable is null but it works on OS5 This is the url Strng: https://api3.popfax.com/index.php?service=Popfax;interface=wifi;interface=wifi public ServiceConnectionBlackBerry(String s) throws IOException { ConnectionFactory cf = new ConnectionFactory(); ConnectionDescriptor cd = cf.getConnection(s); if (cd!=null){ connection = (HttpConnection) cd.getConnection(); }else { System.out.println("Strng: "+s);} } can someone help please.

Black berry camera programming

大城市里の小女人 提交于 2019-12-11 12:28:37
问题 I want take pictures using black berry camera for my app, it is possible in v5.0 and yes then how? 回答1: Yes it is definitely possible, but not a very simple task if you don't get some advice up front. First and foremost, there is some sample code that is shipped with the Eclipse package at least (CameraDemo) that shows how to create a viewfiender using a Field, Player, and VideoScreen. The biggest issue is third party developers cannot overlay anything on top of the view finder (which is the

Blackberry closing UiApplication Alternative Entry Point

左心房为你撑大大i 提交于 2019-12-11 12:27:35
问题 I have a requirement to have a background process using Application, while also having a UiApplication through an alternative entry point. Now, everything works great and I'm able to communicate between them fine, apart from when it comes to telling the UiApplication to close from the background process. I've tried a number of methods: UiApplication.getUiApplication().requestClose() doesn't work. I've tried setting a boolean value to true, which the UiApplication checks every second to see if

Google Maps is not working in BB OS 7

和自甴很熟 提交于 2019-12-11 12:26:57
问题 I have been doing a project in which I need to show the route to a particular location from my current location on a Google map. What I am currently doing is, I am appending source and destination latitudes and longitudes as parameters to Google maps URL (http://maps.google.com/?saddr=43.6775,-80.7339&daddr=34.5008311,-117.1858759&output=embed) and showing it on a BlackBerry browser. It was working fine for my 9800 Torch device and all of the OS 6 devices. But when I tested on 9850 (OS 7)