java-me

Netbeans Mobility Record Store

How can I simply save a number in the text field when pressing save command and retrieve read command? ...

IntelliJ IDEA 9 for BlackBerry Programming

I'm never done any mobile development before, but I'm interested in trying my hand at developing some simple applications for BlackBerry's. I would like to use IntelliJ IDEA to develop the applications. I've tried Googling for a way to set this up, but all I can come up with is people saying that they have to use RIM's JDE for compiling...

Image quality reduces on image resize in blackberry

I am using below code to resize image in blackberry but it resulting into poor quality of image. Please advise on the same. { JPEGEncodedImage encoder = null; encode_image = sizeImage(encode_image, (int)newWidth,(int)newHeight); encoder=JPEGEncodedImage.encode(encode_image.getBitmap(),100); } pub...

How can I include information to my android application post compilation?

Hello, Currently I supply a user with a URL to click on to download my j2me application. This URL includes their user id as a parameter, a servlet takes this information and dynamically creates a jad file that includes this user id , thus making the user id available to the j2me app. However, I am now using j2me polish to compile my p...

Can obfuscation (proguard) lead to MIDlet malfunction?

Hi, Im trying to obfuscate a Java MIDlet with proguard. It runs ok on the PC, however, when I run it on the phone, the program opens, connects to the server, and then freezes. If I disable obfuscation, it runs ok again on the phone. Ive tryed all the obfuscation levels for apps (7, 8 and 9 at NetBeans), and none of them seems to work pr...

How to implement a single instance app manager in java (CVM PhoneME)?

Hi, I'm working on a application manager for embeded platform based on the CVM PhoneME VM. The VM is started by a C++ app which configures the CVM and then triggers the VM itself. This C++ app is called form the command line passing the main class name and the classpath of a java application. There is a main java app (lets call it Manag...

Webservice client in j2me from secure site

Hi, I have to create a java me web service client for wsdl of a secure site (https). When I try to do it using the conventional method of retrieving wsdl in netbeans, I get "IO Exception (Check Proxy Settings)" I have no idea what to do. Can anybody point me in the right direction?? Thanks in advance. ...

removing security in j2me

i have developed application reading and adding the contacts by using PIM api but the problem is it is prompting allow application to use network and send or receive data? allow application to read user data? allow application to write user data? It is prompting two times for read and write. how to remove this and allow application t...

:: how to parse KSOAP ARRAYTPE response ::

HI, I need some help in understanding how to parse the KSOAP RESPONSE in j2me. below is the actual ksoap response i get after making a ksoap request. <AddressArray> <AddressBin> <UserSeqID>200</UserSeqID> <AddressID>115</AddressID> <ZipCode>10005</ZipCode> <IsPrimary>false</IsPrimary> <S...

How to record / capture audio with RecordControl on Java ME, SE K770i

I want to record sound on my Java ME App on K770i. So I used this: http://java.sun.com/javame/reference/apis/jsr135/javax/microedition/media/control/RecordControl.html example of RecordControl in my code. It goes like this: import java.util.Vector; import javax.microedition.lcdui.Choice; import javax.microedition.lcdui.Command; impor...

security exception in file handling in j2me

i am trying to generate a logfile. static String fname="file:///c:/logfile.txt;append=true"; fc = (FileConnection) Connector.open(fname, Connector.WRITE); if (fc.exists()) { // file exists, open at EOF. offset = fc.fileSize(); os = fc.openOutputStream(offset); } else { // file does not exist, create and open. fc.create(); os...

send xml data from j2me app to remote server

Hi, I have a J2ME application - which generates XML data (from an object) and needs to get it sent across to a remote server/machine. How do I get this xml or the object through to the remote server please? Thanks. Just in case it might help, the receiving application on the remote server is PHP powered. Thanks again. ...

Hook hardkey keypress event in Java ME

Is it somehow possible to hook keypress event in background application on Symbian running smartphone? ...

package org.kxml2.kdom does not exist

I added a mini xpath processor into my JavaME codes. I get this error: package org.kxml2.kdom does not exist How do I fix this? Hope someone could help me on this. Thank you in advance. ...

How to disable Center Key (CK) and let only Left Soft Key (LSK) be used in j2me

Hello everyone, I created a custom item in which I need to use the Center Key for the purpose of selecting and I am successfully able to use it with the keyPressed event using the keyCode as -5. The problem is, as soon as I press the CK, it also clicks on the command above the LSK and that causes the menu to pop up. Is there any way tha...

how to produce a key pair for 64 bit public key encryption

I need to generate a 64 bit public-private key pair but can't find out any standard algorithm....... How do I do that? Someone please reply asap ...

J2ME Vector of Hashtable query

I am a newbe to J2ME. I have a vector called locations which prints out [{X=NM0001-1, ccc=1327_10}, {X=NM0001-2, ccc=1329_10}, {X=NM0001-3, ccc=691_10}] when I put System.out.println(locations); I set "X", and "ccc" are the keys. In my program I wanted to query for certain value of "ccc" what is the "X" value. Any help would be ...

Store SMS received/sent on/from a port(other than 0)

I have configured my J2ME application to send/receive SMS on a specific port.Is there any special way to store such SMS, sent/received by the application, on a RecordStore created by the application? PS-Special way is in the context that the entire SMS with all its attributes are stored in 1 entry and any the attributes can be retrieved...

FileReader not found in Java ME

The class java.io.FileReader not found in Java ME. I need this in order to get the file and then parse it with an xml parser. Anyone know any alternatives for this class? *added using CLDC profile. The xml file to be read is in the JAR. ...

J2ME: UI framework

We are starting a fresh J2ME application development. (example: in .NET Composite Application Block for Mobile Devices) I could see www.j2mepolish.org is providing a UI framework. Any other popular framework available for UI? ...