blackberry

Application crashes with Exception when using javax.microedition.media.Player

Hi, I have an application that processes data from bluetooth and send it to the web service. Recently there was a request to add sounds to the application. Now when the application processes batches of data and the player is playing constantly after a few secs I get "Application is not responding" exception. And then the process is term...

Intercept outgoing call in Blackberry

hi, we are looking for a way to do the following: user with BB enters a number (or selects a contact and clicks 'send') our app in the background detects the call event our app does something (e.g. blocks the call / makes a call to a different number, etc) can this be done at all? can it be done transparently to the user (i.e. no d...

BlackBerry - How to make socket keep alive for infinite time

Hi I have created socket program in Blackberry. and also set socket to keep alive using the following socket = (SocketConnection) Connector.open(URL); socket.setSocketOption(socket.KEEPALIVE, 2); But my socket connection gets terminated after 2-3 minute. Means if I keep Ideal for 2-3 minute for 2-3 minute then m...

Blackberry - How to use notification icon in statusbar

In RIM Blackberry OS 4.6+ there is a new feature - ability to show notification icon in statusbar. Integrated application use it to give quick and informative information for user: Dealler - missed calls, Messages - unread messages etc. Possible use of notification icon: missed events RSS updates object status (ex. weather/a...

Notification Service for Blackberry OS 4.5 application

Hi, I am developing an application similar to email application. Whenever new message is received my notification service should indicate change to user...by updating icon, also, the notification service should continuosly listen to server for incoming events. How do I achieve this? I am developing in os version 4.5. Please help. Tha...

How to parse the JSON response in Blackberry/J2ME?

Hi, I want to parse the response coming from the server in JSON format. I have done some googling but i can't find any library or jar kind of thing. Everywhere there is provided open source code as zip file. How can i achieve this? if there is no jar available for blackberry then how to use that open source code in my application?? T...

Blackberry - download and play video from web

I want to play video from a url in my Application...i want to first stream the video and store the data in a buffer and feed the data from the buffer to the player... ...

How can I use the default dialog icons in my custom Blackberry popup dialog?

I'm writing a custom dialog window to display the status of a long operation, and would like to use the little timer icon (the little square clock on OS >= 4.6) that's used in the BB native dialogs. How can I use this graphic within my dialog? I'm already familiar with layout managers and such, I just don't know where the bitmap is, or...

Blackberry - application settings save/load

Hi! I know two ways to save/load application settings: use PersistentStore use filesystem (store, since SDCard is optional) I'd like to know what are you're practicies of working with application settings? Using PersistentStore to save/load application settings The persistent store provides a means for objects to persist acros...

Blackberry reducing the font size to fit in the listfield row

Hi there, i am using the ListField for drawing the text ,Problem is if the size of the text is more then the screen width the remaining text is not appearing.Is there any way where i can reduce the font size for a particular rows whose text content is more to fit in to the ListField drawing region. ...

How do you write for *all* phones/mobile devices simultaneously?

We create non-game programs that run on mobile devices; iPhones, Windows Mobile, Android, Palm WebOS and the like. Our main program is written in C# for Windows Mobile and we've been asked to port it to iPhone. We are not looking forward to: The learning curve to pick up Objective-C, XCode, and Cocoa Touch. The pain of maintaining tw...

Blackberry Field alignment in a VerticalFieldManager

Hi, I am beginning in Blackberry development. I want to add two fields in a vertical field manager. I want the first one to be align on the left and the second one (on the second line) on the right. I don't find a simple answer to this question. Thanks a lot. ...

Blackberry App still running

I am developing a simple app for blacberry with eclipse. I have just set up a ListField with a call back and then my app don't want to stop running after I close it. One very annoying consequence is that I have to reboot the simulator each time I want to test my app. Thank you for your help :D ! public class MyMainScreen extends MainS...

How to build BlackBerry application on Linux?

I've read on some development blogs that it is nearly to impossible to build BlackBerry application properly on operating systems other than Windows. Any possible workarounds on veryfication, rapc usage etc may result in serious and hidden bugs. Please, share your knowlenge of the subject. ...

Blackberry - fields layout animation

It's easy to show some animation within one field - BitmapField or Screen: Blackberry - background image/animation RIM OS 4.5.0 But what if you need to move fields, not just images? Like this: May be used: game workflow functionality, like chess, puzzle etc application user-defined layout, like in Google gadgets enhance...

J2ME/Blackberry - get audio signal amplitude level?

Hi! Is it possible in j2me to measure signal amplitude of audio record made by JSR-135 Player? I know I can access buffer, but then what? Target model Bold 9000, supported formats PCM and AMR. Which format I should use? See also Blackberry Audio Recording Sample Code How To - Record Audio on a BlackBerry smartphone Thank you! ...

Communication Handling using Service in Blackberry 4.5

Hi all, I am developing an app. (like google talk) which at phone boot-up starts a background service which is continuously running. This service interacts with UI (means any request to server is first sent from UI to service & from service to server) & any response is sent to UI through service. What i know to start background service...

How to access internet on blackberry 9000 simulator.

Hi... i am new in blackberry development.I am working in visual studio 2008.How to access internet and webservices. thanks Pankaj ...

Blackberry - Application loading screen

Hi all.. my application contains lots of images..so it takes some time to load the application..i want to show a loading screen whhile the application is being loaded...how is it possible..?? ...

How to read resource file from classpath in BlackBerry app?

Hi, I need to read a resource file from classpath in my BlackBerry application. The directory structure of my project is pretty common: under src directory there are 2 child dirs, one represents source packages root, another - resources root. When I try to read any resource from classpath Class.getResourceAsStream method retures null ...