blackberry

Upload image to server from Blackberry

独自空忆成欢 提交于 2020-01-17 08:05:13
问题 I am trying to send an image to server. I converted the image to a byte array. I then tried the code from "HTTP Post multipart file upload in Java ME" on the Nokia developer forums. I also tried the code from "HTTP POST and passing parameters in URLs" on the BlackBerry forums. I am passing parameters and getting response code 200. But image is not sent to the server. I am stuck on this. 回答1: try{ FileConnection fis=(FileConnection)Connector.open(filename); InputStream inputStream = fis

make desktop sms application using blackberry

一曲冷凌霜 提交于 2020-01-17 06:56:12
问题 I have to make a SMS sending application in .NET, which uses the attached Blackberry handset(blackberry tour 9630 to be precise) to send SMS. I have never worked on smartphone application development, so want help in doing this. I searched SO for an answer and found one question, but its in java and i think that code would run on blackberry itself and not on desktop, correct me if i am wrong. So if someone could point me in the right direction I would be very grateful. Thanks in advance to

Blackberry determine if using external power

风流意气都作罢 提交于 2020-01-17 06:35:08
问题 Is there a way to determine whether or not the Blackberry has a cable plugged in or not? (power/USB) I have tried a number of things so far... if(DeviceInfo.BSTAT_IS_USING_EXTERNAL_POWER > 0) { // Plugged in // TODO : Do something }else{ // Not plugged in // TODO: Do something else } The else is apparently dead code, and this doesn't work at all. I have however had some luck with the following: if((DeviceInfo.getBatteryStatus() ^ DeviceInfo.BSTAT_IS_USING_EXTERNAL_POWER) != 0) { // Plugged in

Blackberry background listener thread

三世轮回 提交于 2020-01-17 04:51:06
问题 Hey everyone! I am new to blackberry programming although I do have some java experience, with c# being my main language). What I am trying to do is write a thread that will run on system startup and exist in the background as a listener. I would like my app to implement KeyListener and basically sit in the background while the phone is on and track a histogram of how many times each button has been pressed. I'm currently running on the simulator so for now I'm just going to have it print to

Too Many threads exception while using custom list field in Blackberry

送分小仙女□ 提交于 2020-01-17 04:40:08
问题 I am developing custom list field using Table Row Manager in blackberry.it displays list of items coming from web service.When i click on item it goes to other screen.But i am getting too many threads exception.after some time i am getting too many threads exception when i click on item.Then i check when the thread is creating by using debug.Then i found of displaying each item it creating separate thread.How can i solve this problem please help here is my custom list field class class

Classification of Blackberry devices by using useragent

旧时模样 提交于 2020-01-17 04:13:08
问题 I need to classify blackberry devices based on OS version. if BB5 and BB6 then {do this} if BB7 and above then {do this} I knew, BB 5 useragent looks like this : BlackBerry9700/5.x.x.x Profile/MIDP-2.1 Configuration/CLDC-1.1 VendorID/229 BB 6 onward useragent is : Mozilla/5.0 (BlackBerry; U; BlackBerry 9800; zh-TW) AppleWebKit/534.1+ (KHTML, like Gecko) Version/6.x.x.x Mobile Safari/534.1+ So, How can i classify 5&6 and 7&above? 回答1: The open source Detect Mobile Browsers script may be what

Blackberry Error: Jar Command Failed

纵然是瞬间 提交于 2020-01-16 19:45:06
问题 Following is the error I get Error: jar command failed: jar -cfm "E:\Blackberry Workspace\Kenexa\deliverables\Standard\7.1.0\Kenexa.jar" C:\Users\Acer\AppData\Local ... Packaging project Kenexa failed (took 8.81 seconds) Project was just working fine, and it suddenly occurred. I have read the forums they said to set the environmental variable for the jdk to the system and also some said to place the jre exe file in jdk something like this, I did both the options but still not working and I

blackberry “error file is not a valid java code file”

十年热恋 提交于 2020-01-16 18:58:10
问题 Here I have created an app, and I need to run app in device but using javaloader but it shows blackberry error file is not a valid java code file. I also found result on many sites but no more success. Here is other sites reply is 1.Either main class name is not mentioned in your build script, or if no setting is present in build file, then the main class(UiApplication) name is not same as the cod file name. 2. The JDE version with which the build is done and the device OS version are not

Blackberry - how to send email with attachment?

帅比萌擦擦* 提交于 2020-01-16 18:35:21
问题 In my application, I allow the user to create an image. I then want to give the ability to email that image. The concept is simple, but the execution is a bit more complex. My first thought was to create my own email screen and send the email myself. I understand how to accomplish this, but I don't like re-inventing the wheel and would like to reuse the blackberry's email functionality. However, I am unsure about the capabilities of the blackberry and the best approach to take. I'm looking

Blackberry - how to send email with attachment?

廉价感情. 提交于 2020-01-16 18:34:26
问题 In my application, I allow the user to create an image. I then want to give the ability to email that image. The concept is simple, but the execution is a bit more complex. My first thought was to create my own email screen and send the email myself. I understand how to accomplish this, but I don't like re-inventing the wheel and would like to reuse the blackberry's email functionality. However, I am unsure about the capabilities of the blackberry and the best approach to take. I'm looking