blackberry

Convert bitmap to base64 string in blackberry

*爱你&永不变心* 提交于 2019-12-20 07:39:36
问题 I have an image which needs to be sent to the server. Is there a way to convert a bitmap(jpg) to base64 string in blackberry? 回答1: What you request is a bit vague and odd, however I hope this can help: With the following piece code it's possible to get a JPEG binary data for a Bitmap (note, it is a compressed one, so the size of the data is as small as possible if compare to raw bitmap): Bitmap bmp = ...; // your bitmap int quality = 85; EncodedImage encodedImg = JPEGEncodedImage.encode(bmp,

Blackberry Facebook NoClassDefFoundError

余生长醉 提交于 2019-12-20 07:31:18
问题 I'm probably doing something dumb but my attempts to access the BB Facebook functionality are failing. Here's the code (taken straight from the FB sample code provided): String NEXT_URL = "http://www.facebook.com/connect/login_success.html"; String APPLICATION_ID = "app_id here"; String APPLICATION_SECRET = "secret_key here"; String[] PERMISSIONS = Facebook.Permissions.USER_DATA_PERMISSIONS; ApplicationSettings as = new ApplicationSettings(NEXT_URL, APPLICATION_ID, APPLICATION_SECRET,

Blackberry Facebook NoClassDefFoundError

寵の児 提交于 2019-12-20 07:31:17
问题 I'm probably doing something dumb but my attempts to access the BB Facebook functionality are failing. Here's the code (taken straight from the FB sample code provided): String NEXT_URL = "http://www.facebook.com/connect/login_success.html"; String APPLICATION_ID = "app_id here"; String APPLICATION_SECRET = "secret_key here"; String[] PERMISSIONS = Facebook.Permissions.USER_DATA_PERMISSIONS; ApplicationSettings as = new ApplicationSettings(NEXT_URL, APPLICATION_ID, APPLICATION_SECRET,

sending bitmap image via email in blackberry

别说谁变了你拦得住时间么 提交于 2019-12-20 07:21:49
问题 How could I send the bitmap from a BitmapField to an email address on BlackBerry? 回答1: Not rly sure if this is what you try to accomplish. Sending an image as attachment. If you rly need a BitmapField to get the image from, can you extend it to hold the bitmap and implement a getImage method? 来源: https://stackoverflow.com/questions/5937775/sending-bitmap-image-via-email-in-blackberry

how to record call in blackberry?

若如初见. 提交于 2019-12-20 07:11:11
问题 I want to create an call recorder application in blackberry. While searching in this forum i have got call-recorder-in-blackberry this link. The code given in the below link is fairly understood. It might be a silly question to you experts but my question is how to us that piece of code. I mean the MyScreen object will work on UIApplication. But how can i make my module start while starting the device, and run in background waiting for the phone call listener to invoke. I have used this below

Catching Throwable in Blackberry Java: Good Idea?

南笙酒味 提交于 2019-12-20 06:45:51
问题 I often see catch clauses for Throwable in Blackberry documentation, such as the Network API docs. My sense is that this is not generally a good practice in Java. Is there a reason for this in Blackberry programming? Does it have to do with stack trace generation for Throwables? 回答1: When you catch Throwable in a BlackBerry app, not only does it preserve the stack trace, it saves that stack trace in the device event log. There is no way for an app to get a stack trace itself, so unfortunately

Having issues installing blackberry apps OTA on OS 5 simulators

久未见 提交于 2019-12-20 06:39:40
问题 I am trying to test my bb app's OTA deployment using apache tomcat 5.5 in eclipse helios, i tried the OTA install from the blackberry OS 5, OS 6 and OS 7 simulators. The apps get downloaded and installed on the OS 6 and OS 7 emulators but all the OS 5 emulators keep giving me the HTTP Error 400: Bad request The server could not understand the page request or was unable to process it for some reason. Please try loading a different page. I have added a .htaccess file to the jad and cod files

read/write and create local xml file

Deadly 提交于 2019-12-20 06:28:27
问题 i have one xml name 1.xml like that <?xml version="1.0" encoding="utf-8"?> <domains> <domain url="www.google.com" id="123"/> <domain url="www.yahoo.com" id="123"/></domains> Now i want to read this xml file. i have put this xml in res>xml folder. How can i read this xml file ? in addition i want to add new some new url in this xml ? so is it possible programmatically ? 回答1: For reading values from XML file in res folder, Use the following code- try { String jsPath = "1.xml"; InputStream input

BlackBerry - Changes are not getting reflected in my app

↘锁芯ラ 提交于 2019-12-20 06:26:24
问题 Suddenly my changes are not getting reflected when I run my app. I have tried the following things. Restarted the Eclipse and tried. created a new Eclipse workspace. Uninstall and installed the Blackberry JDE. As I read "Blackberry simulator not creating COD file", I have deleted some java files and images then tried. Nothing works. 回答1: Make sure your project is "Activated for BlackBerry" like this: 回答2: Next best thing you can do is go to simulator folder in bb plugin and: delete <

load html on Blackberry4.6 os version

时光总嘲笑我的痴心妄想 提交于 2019-12-20 06:11:53
问题 Hi I'm new in Blackberry app development i want to load HTML in browser field.. I'm able to load HTML for version 5 ,and 6 and more but it not loading in OS version 4 plz tell me how to load this HTML on Blackberry OS version4.6 i m using Eclipsed to developing application on 5 and 6 works properly but in 4.6 not plz tell me how to write. Code for this or any specific change in code or we cant load HTML in OS version 4.6? BrowserField mybroBrowserField=new BrowserField(); add