java-me

how to change a color in an image programmatically ?

I have a .PNG image with a transparent background and a drawing in it with a black color, how could I change the "black drawing color" in this image to any color i want programmatically; using rim 4.5 API ? THANKS IN ADVANCE .... ...

Video playback on Blackberry via custom DataSource

Hi Guys, We are working on multimedia application which play both audio and video files with possibility of their cashing to SDCard. For such purpose we are using custom DataSource looks a little bit similar as BufferePlayback sample in Blackberry SDK. And we found problem in video playing - when player is starting it's playing 2 sec a...

use bouncy castle to create public key on j2me

I got the public key from the certificate, keypair is a java.security.KeyPair object String public_key = keypair.getPublic().toString(); I want to send this to the via an http connection to a J2me application. I cannot find any documentation to convert the transmitted string to a Public key that can be used to encrypt Strings. I also...

[JavaME] Getting snapshot produces always same value

Hi, I have this piece of code: byte[] snap = ((VideoControl) player).getSnapshot("encoding=jpeg"); , which gets a snapshot from the camera. Now, after a little processing it produces correct image. The weird part is, that when I debug this line of code, it always has the same value in the field even when the resulting image is differe...

Reverse Geocoding Using J2ME

Hi, My project runs on J2ME and requires me to get the user current street address. I am able to get the user coordinates using location based. But how do i go about getting the street address?? I know google map does the reverse geocoding. But how can i link that to my application?? And will there be any legal issues too?? Any guida...

J2ME applications in Nokia 2660

It's possible to install J2ME Midlets in the Nokia 2660 cellphone? The installation of the Midlet is via bluetooth or physical cable? ...

implementation of TCP/IP for java-me

java-me uses the internet connection of the mobile device to implement network api's. are there any special features in the implementation of tcp/ip protocol stack for mobile devices or the implementation is essentially the same with a little different parameters like buffer space etc. lets take symbian for example. ...

How to filter keys in MIDP TextField?

I have a TextField.PhoneNumber but I would like to filter out "+" character. Another words, I need a new constraint for TextField. Is there a way to define a new constraint with TextField? How about preventing keys from cycling on a mobilephone within a midp? Thanks in advance. ...

How can I implement session variables in J2ME ?

Is it possible to use session in J2me? I am trying to develop a Blackberry application. I want to get some text from a class(page) and use in another class(page). May be something like the we do in app.net as: Class1 { session("myVariable") = Textbox.Text; } //a new class Class2 { TextBox2.Text = session("myVariable").toString(...

Fail to preverify LWUIT with Antenna

Hi , I am using the LWUIT library (j2me). When I compile the code with my IDE (intelliJ) everything compiles and runs fine, but when I'm building it with Antenna (latest version), I fail on the preverify task. The log says the following: Error preverifying class com.sun.lwuit.Button VERIFIER ERROR com/sun/lwuit/Component.drawPainte...

How can I convert a cp1251 byte array to a utf8 String?

We don't have the cp1251 code page available on a phone, so new String( data, "cp1251" ) doesn't work. We need a function with signature something like String ArrayCp1251toUTF8String(byte data[]); ...

How to send and receive an image from J2ME to a Java Web Service

I've been spending the last 2-3 months trying to get this working. I'll try to be clear to what i want, i hope someone can help. I have the image in an Image object in J2ME I want to send the image to a Web Service The Web Service is ONLY java code, i don't have access to the wsdl file. I'm writting the code in NetBeans, and i use TomC...

Problem in including lwuit.jar to eclipse/ ant script

HI, I am getting issues with setting LWUIT.jar path to my existing project. Project is built using ant script and developed under eclipse 3.5.1 Tried ways: 1.Putting and checking jar to properties->java buildpath ->libraries/orders and export (gives compile time classnot found exception) 2.Setting classpath to windows->preferences->ant...

OTP S/KEY - How are Seeds generated, are they random each time? thanks

Hi there i'm looking at developing a One-time Password authentication system (j2me for phone, php for server side) I'm trying to get my head around the process, here is what i understand user > inputs random secret (S) into hash n number of times user > submits S^n to server server > saves n and S^n user > generates (S^n)-1 and submit...

OTP or S/KEY - Conversion of Hex string into 6 readable words

As seen in RFC2289 (S/KEY), there is a list of words that must be used when converting the hexadecimal string into a readable format. How would i go about doing so? The RFC mentions: The one-time password is therefore converted to, and accepted as, a sequence of six short (1 to 4 letter) English words. Each word is chosen ...

Java ME 3.0 SDK on Linux?

Is it possible to develop java me applications on linux? It appears that there is no linux version of the sdk. Otherwise what would you suggest as a good language to develop mobile applications? ...

OTP S/KEY One Time password - Folding MD5 Digest output

Hi there, Im trying to create a one time password generator for a phone. In the RFC2289 it specifies that i must fold the output of the MD5, i'm using bouncy castle MD5 and i cant work out how to fold the byte array output. for (int i = 0; i < 8; i++) { md5[i] ^= md5[i+8]; } This is what i have so far ...

MIDP 2.0 TCP Client

Hi guys, I am trying to develop a TCP client that runs on mobile devices using MIDP 2.0 and CLDC 1.1. I am trying some sample code, and I have the following problem: I get a weird exception when I try to read the data back (From the MIDlet). This is my code: //Wait for an incoming message firstByte = in.read();...

convert recieved byte array to required instance of class in j2me

hello, i m developing an application in j2me which features a Bluetooth Communication of an object of a user-defined class. I received the byte array using following code: public byte[] receiveBoard() { ByteArrayOutputStream baos = new ByteArrayOutputStream(); try { ins = conn.openInputStream(); ...

Mobile programming

I have Nokia 2700. On which programming language i can develop programs? Only Java ME? Which PL is best choose? ...