blackberry

How do I show a requirement for OS 5 in my Blackberry widgets?

I am developing a Blackberry widget application, which I know requires OS 5. Now, I'm using OTA installation, but when a user without OS 5 loads the .jad file, they get an exception like: This application requires the following modules which are not installed: net_rim_bb_browser_field2_api net_rim_bb_web_jse_api net_rim_networkap I w...

how can we save the blackberry messenger contacts list in a text file.

MessengerContact contact=null; contact=BlackBerryMessenger.getInstance();.chooseContact(); This only delivers a pop up dialog containing the list but my requirement is to write the list of contacts in a file and store it somewhere. ...

how to sort persistant data?

hi , i am making a application in which i am storing many dates in long in persistant object. i want to make a list of these long value in asending order,whenever a new value come inside the persistance our list is sorted.. plz give me code.. thanking you.. ...

What size image should I use for BlackBerry context menus?

The BB OS 5.0 supports images for context menus. The API documentation says the image will be scaled to fit a square set by the height of the menu font. I find that totally unhelpful. The only way I can explain that method of calculation is due to screen resolution and DPI. But since the 5.0 OS is only valid on a handful of devices with...

Blackberry MD5 authentication with HTTP Post

Hi, I need to send to a server in POST an email (String) and a password (MD5 hash in byte[]). Below how I get my MD5 hash where "password" is a String (what the user enter): byte[] passMD5 = Crypto.encodeStringMD5(password); And the function: public static byte[] encodeStringMD5(String s) throws Exception { byte[] bytes = s.getB...

Is it possible to program a BlackBerry smartphone using C# and managed code?

Is there any way possible to run C# code on a BlackBerry OS smartphone? I've got some Windows Mobile 5.x/6.0 frameworks written in C# that my team needs to "port" to various smartphone platform. We're looking at the following smartphone OS's: Windows Phone 7 - VS 2010, Windows Phone Developer Tool CTP, Silverlight, XNA iOS - MonoTouch,...

How to create/read/delete cookie in blackberry widget?

How to create/read/delete cookie in blackberry widget? ...

custom media plyer

hi, i want to build a application that use the three buttons (start, pause,stop) these three buttons calls the build in media player function (start, pause, start) but the media player is not show on the screen. ...

Data service in roaming on blackberry phones

Hi, Can i chack in my application that data serivice is available in roaming? Can i use PhoneState.isDataServiceAvailable() for this situation or use another solution? ...

QR code reader for BlackBerry

Is there a BlackBerry library/component (open source or commercial) for integration in my own application that acts as QR code reader? I'd like to fully integrate it in my application. Or alternatively: is there a way to use the open source ZXing library in combination with the camera, ideally with live detection of the code? ...

j2me :question about Landmark class

i am trying to invoke blackberry map and label a location by address. i tried the sample code as following public class invokeMaps { public invokeMaps () { Landmark[] landMarks = new Landmark[3]; AddressInfo addressInfo = new AddressInfo(); addressInfo.setField(AddressInfo.STREET, "455 Phillip St"); ...

Blackberry scrambled device ID in 8 characters unique

Hi, I need to scramble Device IDs on the Blackberry for privacy matter. When I call the function DeviceInfo.getDeviceId() I got a 9 characters number. After convert it in Hexa, I got the real PIN number for the device (or device ID depends how you call that) on 8 characters. Like I said, for privacy matter I can't store the PIN as is i...

Intercept incoming SMS

I would like to know what are the options for intercepting an SMS. I want to be able to launch some code to handle the SMS when it is received. Any advise on whether this is technically possible and what options I have if there is more than one way, would be greatly appreciated. Thanks Paul ...

xhr with phonegap on the blackberry

I am trying to submit an xhr using phonegap on the blackberry. Currently when I make the request it fails silently. I have tried using jQuery jQuery.getJSON(url , callback), an xhr object var xmlhttp = new XMLHttpRequest(); //callback function when XMLHttpRequest is ready xmlhttp.onreadystatechange=function(){ if(xmlhttp.readySt...

Buffering in Blackberry

Hi, Currently i am working on the Application for which i have to use audio buffering and please tell me how i can acheive this task as i am being try myself. ...

BlackBerry user authentication with LDAP

Hi there, After I've tried so much and still being stuck, I hope anyone here has an idea. Well, that's the situation: I'm trying to login to my app with ldap. If its possible to login there, you can go on using the app. I've already tried to use net.rim.device.api.ldap.LDAPQuery but the problem is, that if I try to log in, the LDAP L...

How to create a custom calendar in Blackberry?

I have a Blackberry Curve 8310 running OS v4.5.0.182 that I am writing an app for, using the 4.5.0 JDE API in Eclipse against JRE v6. I have Facebook installed and it was able to create its own calendar (I have 3 calendars total - the default calendar, a calendar for my Blackberry email address, and a calendar for Facebook). Accordin...

ho to play a mp3 file

how to play a .mp3 file using our own code. i am use stat and stop the file using our own method and buttons. like we use only two button that start and stop the .mp3 file ...

how to display resume button screen in blackberry?

Now i am displaying home screen .it has view button and startnewtestbutton.and the user is reading suppose 10 questions out of 50 questions in testdatabase.the user wants to resume till now.then the user is exit from complete test .and then the user is wants from resume button screen .how to display that resume button screen.anybody help...

How to get the HomeScreen back after exit the application with resume Button?

Hi I am new to Blackberry. I am developing a Quizz application having a HomeScreen and subsequent screens.My requirement is after user exit the application in the middle of the application the user is able to continue the test where he stopped. For that I used a ResumeButton on the HomeScreen whish should display even after closing t...