blackberry

BlackBerry Math Utilities (Pow & Round)

I'm creating an application from an Excel application that I've used for several years, to calculate mortgage loan details, but I'm having problems with three calculations involving MathUtilities.pow & MathUtilities.round. Here's my app & the compile error messages that are giving me problems. I've also included my original Excel calcu...

Use BlackBerry JRE 5.0.0 or previous on MacOS

I have my Windows work computer set up with JDE 5, but the plugin for the Mac OSX Eclipse on my home computer is JDE 6 and I can't seem to find a source to download it from. I found a blog post about MacOS BlackBerry development, but it is from before the official MacOS plugin was released. Anything new on this front? ...

how to get notified when email comes in inbox?

I am new in blackberry want to handle inbox of blackberry, means no of messages in inbox, and get notified whenever a new message arrived? ...

BlackBerry BitmapField on focus change and click listener

I want to change the BitmapField image onFocus and onUnfocus and I need an onClick event on it. How can i do this? Here is my code but it is firing an event on focus change. public class ClickbleImage extends BitmapField { public ClickbleImage(Bitmap bitmap,long style) { super(bitmap,style); } public boolean isFoc...

Blackberry: how to embed youtube video inside an application

I need to play a youtube video from my bb application. Does anyone know how to do that? Can I have a youtube video player directly inside my app or can I at least have a link to open youtube video in the browser? ...

Blackberry XYEdges class explanation

Ok, I've read through the documentation at http://www.blackberry.com/developers/docs/4.2api/net/rim/device/api/ui/XYEdges.html for information concerning how the XYEdges class works, but I seem to be misunderstanding something. My question is where is the point of origin on this coordinate system? Is (0,0,0,0) located at the top left c...

Blackberry's WLANInfo.getWLANState() Doesn't Return Correct Information

I'm working with the NetworkUtils.java class created by Sameer Nafdey in his blog post regarding accuiring a network connection within a Blackberry Application. However I recently noticed that my application was using the cell network even when a WiFi connection was available. I realized this was the case when we tested the application o...

GridFieldManager will not span the entire screen width.

Ok, I'm developing for the blackberry Bold 9700 and I'm trying to get a 1X4 grid (1 row, 4 columns) to span the entire width of the blackberry screen, but it keeps coming up short. I mean, the grid is aligned to the left by default, which is fine if I can get the whole grid to span the entire width (it won't matter then). Can some develo...

How to put Image on Buttonfield and add events

I want to develop a java application. How can I create an imagebutton? How do I put an Image on a ButtonField, and add click and navigate events to it? ...

MapView on BlackBerry 5.0

Hi All, I have run a mapview sample program in blackberry 4.5.when i run the same program in blackberry 5.0 it shows the following error... Error: MapletMapField: Maplet Request error: -3 zoom: 11, lat: 4210131, lon: -7869664, left: -8520926, top: 4578771, right: -7218401, bottom: 3841491, URL: _http://maps.blackberry.com/map2/, reque...

Blackberry @Override notation error

In Eclipse, I did: Source > Clean up, and did a clean up according to these rules: Change non static accesses to static members using declaring type Change indirect accesses to static members to direct accesses (accesses through subtypes) Remove unused imports Add missing '@Override' annotations Add missing '@Deprecated' annotations Re...

Blackberry: Efficient debugging on device?

I am currently trying to debug a blackberry application on a real device. I find the setup time to be ludicrous! Here is my workflow: Uninstall the application using Blackberry Desktop Manager (BBDM) it takes about one minute to select the options to uninstall the app... BBDM needs to connect to the device and load the application l...

Blackberry: Location Services Backwards compatible to OS 4.5

I'm trying to use Location services for the BB, but I need backwards support to OS 4.5xx. In 4.5 API doc: Locator.geocode(AddressInfo address, Coordinates startCoords) returns an Enumeration. http://www.blackberry.com/developers/docs/4.6.0api/net/rim/device/api/lbs/Locator.html In 5.0 API doc: Locator.geocode(AddressInfo address, Coord...

Problem with button action on BlackBerry

I'm having some trouble setting the FieldChangeListener of a new button I am creating after an action is performed. I have a list of ButtonFields and when I create a new VoiceNote a new ButtonField linking to that VoiceNote is added. I create a new voice note to be edited in another screen and when that screen is closed the note is a...

blackberry - add Fields to a Screen

I have been testing the Blackberry LabelField, ObjectListField and other input classes. I would like to add a number of Label fields to the bottom of a BlackBerry screen. For example, I have an application that gets GPS readings. I would like to append a Label field for each record. Furthermore I want to display items one at a time ov...

Webservice stubs in Blackberry app

I am currently developing a proof of concept Blackberry application that uses RPC calls. I have also developed a very basic server application in .Net that simply timestamps a string sent to it and returns it to the client. I have been able to connect to the server app using a .Net client and a Java client so I am fairly confident it wor...

Is a file with 'xml' extension required to parse XML on a BlackBerry?

In my application I get a response from a web service which is in xml format. I am storing that response in a string and then would like to parse the string. Is it possible to do this or do I need to save the xml data into a file with 'xml' extension? ...

BlackBerry problem using Java SE features

I have imported net_rim_api.jar into my project. I also want to use non-j2me classes like StringTokenizer and PrintWriter from the standard rt.jar, but when I run the application it gives the error "java/io/UTFDataFormatException" Duplicate class definition error. How can i solve this problem? ...

Add ContactList on Blackberry

I want retrieve contacts from the address book on a BlackBerry. I can get the contacts using the following code: AddressBookArguments abArg = new AddressBookArguments(); Invoke.invokeApplication(Invoke.APP_TYPE_ADDRESSBOOK, abArg); However I cannot access the selected contact in my application. How can I display the selected conta...

Run BlackBerry application on startup, and add notification that it is running in the background

I want to write a Java BlackBerry application that runs on startup and stays running in the background, but gives the user an indication that it is running with an icon in the corner of the homescreen. What techniques can I use? ...