blackberry

J2ME/Android/BlackBerry - driving directions, route between two locations

On Android 1.0 there was a com.google.googlenav namespace for driving directions: Route - Improved Google Driving Directions But in newer SDK it was removed by some reason... Android: DrivingDirections removed since API 1.0 - how to do it in 1.5/1.6? On BlackBerry there is also lack of APIs for such stuff: how to find the route between t...

Blackberry - getPreferredWidth ignored in 4.5?

I've created a ButtonField with an automatically-calculated width. The button's width will be determined based on how many other buttons are in it's parent's HorizontalFieldManager (HFM). So if there's 3 buttons, each button will be about 33% of the width. If there's 5 buttons, each one will be about 20% of the width, etc... Basicall...

How to flip a UI component when doing BlackBerry Java development?

I'm looking into porting my iPhone application to the BlackBerry and have run into a wall with the out of the box UI components and UI animations available for the BlackBerry. One feature that I really, really need to figure out is how do I flip over a UI component on the BlackBerry. For example, lets say that I have a UI component for a...

BlackBerry:Accessing Google Maps API's on Blackberry platform?

Hello all, I am developing an application, which should be able to access Google Maps and it's API set on Blackberry platform? I want to programmatically, 1. search for current location information 2. Places information like famous places, malls, restaurants and other details etc. using Google Map API's. How do i access Google Map AP...

A Scheme for security of Blackberry consumer application. Feedback required.

I have earlier asked a related question here. I have come up with a scheme which I shall describe below. I request experts out there to provide feedback. Since the target application is a consumer application, implicit assumption is that the application won't be deployed on BES. If required, a separate application would be developed th...

Blackberry older simulator

hi friends... my client wants me to make an application which works on pre4.0 os... i understand that if i make 1 like that then it wont work on the latest os... But my actual problem is that though i did the coding correctly coz the application was just a simple WebIcon... i cant load it onto the 7290 simulator... i tried javaloader -...

Eclipse randomly exits after installation of Blackberry plugin/SDK

Hello all Since adding the Blackberry Java classes from their website into eclipse, I've had it where eclipse will randomly close, with no discernible pattern, rhyme, error or reason. Here is the environment/software packages that I am using: Windows XP SP2 Eclipse v3.5.1 Blackberry Java Plugin v1.1.1.200911111641-15 Blackberry Java SD...

BlackBerry - How to create a sub image from a larger image?

I need to create a new, smaller, image from a larger image at runtime. The smaller image size is fixed (square) and represents a specific region of the larger image (the smaller image is a subset of the larger image). Image format doesn't matter. Thanks. ...

Blackberry compatibility issue

i developed a simple uiapplication on 4.2.1 with a screen...if i compile it using 4.2.1 and run on 9500 simulator it goes to compatibility mode...i don't want this so this is what i tried.....edited the jad file added RIM-TouchCompatibilityMode: false RIM-TouchCompatibilityMode-UserChangeable: true added the jad file to the project a...

Server send sms with pipe separator('|') but when receive sms from my Apps it replace the pipe character with escape & ampersand.

Server send sms with pipe separator('|') but when receive sms from my Apps it replace the pipe character with escape & ampesand. The code is given below : Datagram d = _dc.newDatagram(_dc.getMaximumLength()); _dc.receive(d); Controller.trace("RTTSMSListener - receiving an SMS"); ...

How to follow a "page auto-redirection" to get the response code ?

I use the following code to get the returned response code of an aspx page HttpConnection connection = (HttpConnection) Connector.open("http://company.com/temp1.aspx" + ";deviceside=true"); connection.setRequestMethod(HttpConnection.GET); connection.setRequestProperty(HttpHeaders.HEADER_CONN...

Blackberry http connection not working on 3g

hi friends i'm a newbie in blackberry programming and have managed to make a small application... The application downloads an xml file through http and parses it and displays it on the screen... now the problem is that though it works fine on my simulator... the client complains that he's getting an error in connection if he connects it...

Which are the J2ME MVC frameworks?

I have to do a quite big project in J2ME for school. I didn't used 'till now J2ME, so are there J2ME MVC frameworks for which I can find books or at least very good online tutorials? MVC is what I'm looking for because we have to do unit testing and I'm familiar with MVC from ASP.Net MVC, Rails and Grails. So, any good framework to use ...

XML parsing problem on Blackberry

Hi, I am using SAX Parser to parser XML file on Blackberry platform. Some XML tags contains exrta spaces and newline characters. How to remove this unnecessary whitespace characters while parsing XML file. Any help would be appreciated.(I tried to use Trim() function but still it doesn't remove extra whitespaces.) Thanks, Jim. ...

Can you integrate Java 1.6 classes into Eclipse Blackberry project?

i am using the latest IDE for eclipse and have attached the blackberry 5.0 sim. i am a new bb developer and i was wondering if there is any way of integrating java 1.6 classes (or any 3rd party jars) within the blackberry project without getting an error similar to the following: org.apache.axis2.util.Utils$3: Warning!: Duplicate metho...

"Add File to Blackberry Project" option is missing in Eclipse

Hi, I just started developing apps for the Blackberry and ran into a glitch. I was trying to add an external java class to my project in Eclipse (Version: 3.4.1) and realized that the "Add File to Blackberry Project" option was missing. I'm not sure if I missed something in the installation but I ran a sample project and it compiled and ...

MissingNativeError thrown when importing Jar file on BlackBerry

I have several libraries that I want to import into my project. They are all Jar files I've created, and they were built using Eclipse, then preverified using the command-line tool. Now, I'm working in the BlackBerry JDE (not Eclipse) and I've added the Jar files into my main project. Originally, it wouldn't compile, complaining about...

Blackberry - ButtonField visibility depending on LabelField focus

I have 3 fields in my ui 2 buttons, one on top and other on buttom of a label field...when ever the label field gets focus i want the buttons to appear and i should be able to click on them...and when the label field loses focus the buttons should disappears..how can i do this... ...

Blackberry - BasicEditField with LabelField behaviour

i want a BasicEditField to behave just like a label field...the reason i want this is i cant use label field in my case as in case of 9500 the onFocus method does not work for some reason...but it does in case of basic edit field...so i need to create my own label field... ...

Using bitmap as alpha mask

I have a collection of images that are simply grayscale images that I need to use as a stencil or alpha mask so I can draw other things though them. Something along the lines of this pseudo code... void paint(Graphics g) { Bitmap src = loadStencil(...); Bitmap dst = new Bitmap(src.getWidth(), src.getHeight()); Graphics dstG...