midp

Reading custom resource from within MIDP 2.0 midlet

Hello everybody, How can one load custom (not an image, nor a sound file) resource file from /res within .jar using MIDP 2.0? Thanks in advance. ...

Is there a good HttpClient library for J2ME/MIDP?

I want to call some RESTful web services from a J2ME client running on a MIDP enabled mobile device. I read the MIDP api for HTTPConnections and thought this is just crying out for a simple wrapper to hide all those unpleasant byte arrays and such like. Before I write my own I wondered whether there was a good open source library already...

getting and handling the key presses in a J2ME GUI application

Hi, i am quiet new to J2ME GUI programming (or developing with java in general), so this question might sound very basic to some of you. I am going to ask it anyway since i can't figure out how to do this. Here it is: I programmed a bluetooth TV-Remote control for cellphones in J2ME using javax.microedition.lcdui.* (Gauge, List, ChoiseG...

How to generate a hash value in J2ME?

How can I generate hash value for a byte array, in J2ME? It doesn't have to be very very secure but it should be fast. ...

Getting Device IMEI

How to get the IMEI of a Java ME device in a common way that is applicable to all devices ...

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...

Java enums in MIDP 2 mobile application

I've just got back to MIDP development after some 4 years of .NET 2 and Java 5 and 6. During that time I got to like using enums quite a lot. Enum is a language feature that allows a developer to have more confidence in some parts of his code, specially for being able to avoid or detect errors earlier (during compilation). Some other ad...

Store data with MIDP RMS and retrieve in PC.

How can I retrieve data stored using MIDP's RMS? I would like to collect some data in the handset and then be able to process it in the PC's application. If I can't do it using RMS, is there a way to store data in text files using MIDP? ...

Reading UTF8 strings from a server through http using MIDP.

I want to read UTF-8 strings from a server that I have control of, using java MIDP. My server is sending UTF-8 data. The following code gets close: c = (StreamConnection) Connector.open( myServer, Connector.READ_WRITE); InputStream is = c.openInputStream(); StringBuffer sb = new StringBuffer(); ...

Get device unique ID

Is there a way to get a device's unique identification using MIDP2.0? ...

Limited sockets to midp?

It seems to me that there is some kind of limitation in socket creation in MIDP. I need to make lots of connections to a server (none concourrent) and in the forth or fith try my app crashes. It crashes in the simulator and in my real device as well. To isolate any possibility of it being influenced by my code, I isolated the following ...

What are the differences between J2ME Wireless Toolkits and which one to choose?

I already know the differences between Java Edititions (ME, SE, EE), the ME Configurations (CDC and CLDC), Profiles (like MIDP), and additional APIs specified by JSRs. But I am totally clueless about the differeces of the several Wireless Toolkits. For example, Mobile Tools for Eclipse explicitly supports these ones, and states that o...

Playing sounds on Samsung M220 (Telus Canada) - MIDP 1.0

Hello everybody, We're porting some Java applications for the Samsung M220 (Telus). This is a MIDP 1.0 phone and we're stuck when trying to play sounds on it. As far as I know, MIDP 1.0 does not support our audio functions except system beeps. Is there any way to play sounds on the M220 (Telus Canada)? If you have any suggestion on wh...

what is the best programming language for mobile phone development involving SMS ?

Hi, I work in an environment were most people use Nokia (Symbian OS) and I am required to develop software that handles SMS inbox. I know Java (J2ME or MIDP) would be the best being platform-independent, but it doesn't support accessing the SMS inbox to read or create messages. so what is the next best language/platform to use, bearing...

How can I code Android with J2ME?

Hi, As for as i know that android application can be developed in core java only.But is it possible to code android with J2ME.Please give some example codes. regards, s.kumaran. ...

HttpConnection truncating messages in Sony Ericsson W580

Hi guys, I've been having a problem while using HttpConnection with a Sony Ericsson W580. The response to my http requests is application/octet-stream, and I'm sending a quite large array of bytes. In this mobile phone however, it is consistently being cut down to 210 bytes... I've tested the MIDP application in a large number of dif...

MIDP Java implementation of SQLite DB

Are there any MIDP implementation of SQLite db available for use of sqlite db within a MIDlet, rather than using RMS. Of course, there are Floggy and OpenBaseMovil, however they are based on RMS, but are there any implementations that allows to perform operations in an sqlite db file? ...

How to fast-forward and rewind audio in j2me / blackberry (midp) application ?

Hi, I want to fast-forward and rewind recorded audio in a j2me and Blackberry application. Is there any sample code available? How do I do it? Please help. Thanks in advance. ...

Synchronize data from JavaME mobile locally

Hi, I would like to write a litte data-entry app for mobile phones using JavaME (MIDP/CLDC). How do I best synchronize the data with a local application on my PC (resp. just transfer the data to the PC)? Is there any standard way to connect to the PC if the mobile is plugged in via an USB cable? I know that I could just connect to some...

Java VM Best choice for windows CE.

What is, currently, the best choice to run MIDP applets in a Windows CE based System? ...