java-me

Sending data in HTTP request's body fails

Hi I am using the HttpConnection class of J2ME in my BlackBerry app to send data to a web server. I need to send the contents of an image in the body of the HTTP request. This is what I do Get the bytes of the file in an array Open HTTP connection Set content type header as image/jpeg Get output stream of the connection Write the byt...

Best Practice for killing a JavaME 1.2 thread?

Question: I'm interested to know the best practice for killing a long standing operation that is running as a background thread (lets call this thread WorkerThread) in Java 1.2. Scenario Specifically, I'm developing an application for Blackberry devices whereby I make a HTTP connection. Big picture: a URL request if forwarded to a back...

Error : The type Class is not generic; it cannot be parameterized with arguments <T>

Hi I am using Blackberry plug in for eclipse. Default jre setting is 1.6 I am getting following error which doesnt allow me to compile my .java file : The type Class is not generic; it cannot be parameterized with arguments Please help. ...

OpenID authentication from an installed application

Hello, I'm currently planning a new web project. Clients are going to connect using a regular web browser and, in case of regular java-enabled cell phones, j2me client. I would really like to make use of the OpenID authentication. In case of regular web browser things are pretty straightforward. However, I am really not sure about insta...

Blackberry - How to add third party zip files to project in Eclipse?

Hi, I am trying to add a third party zip file to my project while using Blackberry plugin for eclipse. Whenever I build the project,the zip files disappear. Is there any way to compile the project with third party zip files? Please help. ...

how to build calender mobile event

How to store special event to specific date and time in calender mobile using j2me ...

How should I strip invalid XML characters from a stream in J2ME? org.xml.sax.SAXParseException: Invalid character

This code is running on Blackberry JDE v4.2.1 It's in a method that makes web API calls that return XML. Sometimes, the XML returned is not well formed and I need to strip out any invalid characters prior to parse. Currently, I get: org.xml.sax.SAXParseException: Invalid character '' encountered. I would like to see ideas of a fast w...

Fastest Dijkstra algorithm for j2ME

Hi All, Can anybody help me to make j2ME implementation of Dijkstra algorithm faster ? I have two loops, one inside another. Like this while(for each item in Q) { //...do something. //the following loop is to find the minimum for(all un-visited nodes in Q) { //.. do something to get min. } } I have almost...

How to implement Bouncy Castle Rsa encryption in Black Berry Application

Hi, Can anyone provide me feed back on How to implement Bouncy Castle Rsa encryption in Black Berry Application Thanks, Bapi ...

SQLite for blackberry

Hi , Is sqlite available for blackberry?.Is any other option available other than that .... ...

OTA midlet question/issue

Hi. After installing my midlet to a phone over the air, I'm getting a blank page from browser which need to be closed manually. 1) Any idea how to prevent it? 2) I read that JAD files are no longer required, as the all info located in JAR. I tried to use the JAR files instead of JAD's, but with them the browser first downloads and onl...

How-to enable auto-capitalization, punctuation, text functionality in Blackberry app text Fields?

I'm using RIM JDE 4.2.1 I'd like my text fields to auto-capitalize the first letter of sentences, add punctuation at the end, and reference the AutoText DB on the device. It seems like this would/should be a Field type in the API but either I'm missing it or it's just not there. For reference, the API is located here: http://www.black...

TransformerFactory in BlackBerry ?

How do I use TransformerFactory in BlackBerry for XML creation? Java has TransformerFactory method. But BalackBerry does not. ...

BlackBerry external jar

Hi, I am using JDom jar and i want to add to my blackberry project . I am using eclipse plugins for blacberry. while building blackberry app from eclipse the error is displayed on the console as "JDOMAbout$info:error!missing stack map @label.... " rapc falied for the project along with this several warnings are also displayed ... so...

Nokia s60 emulator for linux

I am using EclipseMe on Ubuntu. I want an emulator that can emulate mouse movements on screen. Is there an s60 emulator for linux? Edit: Does net beans has an in built emulator that can emulate mouse movement on device screen? ...

web application development with j2me

The main reason I'd like to use j2me is that one of its main advantages is that it can access the phone's resources through its various APIs. However, due to newer phones having web browsers like Safari, Opera, and Windows IE, it would be advantageous to build a web application so a user wouldn't have to download some software onto their...

UDP connection test on BlackBerry Simulator

Hi, I am trying to send data using UDP (datagram). I am not able to test application on simulator. I tried running MDS first and then simulator,but it did not work. The error is displayed as Port 8080 already in use on BlackBerry simulator console. How do I change port in simulator? The UDP port to which I am connecting is localhost:501...

How to deal with the most common classes missing on J2ME

I'm trying to code an application which runs un different java platforms like J2SE, J2ME, Android, etc. I already know that I'll have to rewrite most of the UI for each platform, but want to reuse the core logic. Keeping this core portable involves three drawbacks that I know of: Keeping to the old Java 1.4 syntax, not using any of th...

J2ME backlight

Hi. Is there any reliable way to support back-light in J2ME on multitude of models, other then pre-processing? Is there any library available that may handle the back-light for various phones out there? Regards. ...

Generate AES key with seed value

Hi, How do I Generate AES key with seed value so that whenever I generate key with same seed value,I shud be able to get the same AES key? I want to generate this key for my Blackberry Pearl 8100 device. Please help. Thanks. Hi again, I am not able to generate AES key with AESKey(keyData) . Also whenever I print it either in the ...