midlet

Yes/No dialog in Java ME

I'm looking for a simple solution for a yes/no dialog to use in a Java ME midlet. I'd like to use it like this but other ways are okey. if (YesNoDialog.ask("Are you sure?") == true) { // yes was chosen } else { // no was chosen } ...

Can you record audio with a Java Midlet on a Nokia phone (N80/N95) without the JVM leaking memory?

I would like to repeatedly capture snippets of audio on a Nokia mobile phone with a Java Midlet. My current experience is that using the code in Sun's documentation (see: http://java.sun.com/javame/reference/apis/jsr135/javax/microedition/media/control/RecordControl.html) and wrapping this in a "while(true)" loop works, but the applicati...

What's the difference between a midlet and a corelet?

It's my understanding that a corelet is a Motorola-ism, but does anyone know what the difference is? Do corelets have certain abilities that midlets don't? ...

Processing chunked encoded HTTP POST requests in python (or generic CGI under apache)

I have a j2me client that would post some chunked encoded data to a webserver. I'd like to process the data in python. The script is being run as a CGI one, but apparently apache will refuse a chunked encoded post request to a CGI script. As far as I could see mod_python, WSGI and FastCGI are no go too. I'd like to know if there is a wa...

Open file with MIDlet.platformRequest()

Is it possible to get a device to open a file on disk using the MIDlet.platformRequest(String url) method? I was hoping to use the following: midlet.platformRequest("file:///path/to/file/file.png"); But this just throws a ConnectionNotFound exception. I'm specifically using the BlackBerry platform, but I do not have access to the prop...

How do I align textPosition for a label?

I wonder if it is possible to set textPosition() for a label that includes an image and a text part so that the text is both TOP and LEFT. The problem I have now is that I need the text to be TOP but when that is selected the text is centered over the image. My wish is that the text is over the image but to the left and not centered. I w...

Timer code for online quiz on mobiles

hello everyone, We are doing project on online quiz tool for mobile devices using J2ME. We got the code for midlet interface, webserver and connections. But we need to implement timer in it. So anyone can give suggestions for that code and where can be it beneficial to implement it? ...

Deploy midlet on Nokia mobile

I have written a midlet which asks username and password and connect to servlet running on tomcat to validate. When I run the midlet on the emulator provided by sun toolkit, first time it asks "This midlet wants to connect to http://... using airtime" and asks user permission. I want to know is there anyway to get rid of this? Once this ...

Midlet connectivity via broadband or GPRS

Midlet using HttpConnection to connect a webservice application. A mobile can use a wireless broadband to connect to internet or can use internet facility provided by the network provider i.e. Vodafone or Virgin which is I think known as GPRS. Correct me if my understanding is wrong. Now my question is when the midlet will run which co...

How to make a midlet from source?

Hey I got some sources files for midlet application. How can I compile these to a midlet that I can run on my mobile. ...

How to install a MIDlet on a SonyEricsson phone directly in the Organizer folder

This question refers strictly to Sony Ericsson phones running Java Platform 8 or higher. It is possible to instruct the AMS to install the application in one of the folders Applications or Games. But I want to install the MIDlet in a different folder. The target folders are Organizer, Entertainment or Location services. Is it possible t...

Setting Midlet Icon using J2ME-Polish

I'm using J2ME Polish version 2.0.7 together with ant to build my Midlet application. In order to specifcy the main-class, name and icon of the application, the J2ME Polish documentation suggests that I use the midlet element inside the build element. <build usePolishGui="false" > <midlet name="My Killer App." icon="/logo.png" clas...

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

Making a J2ME Midlet sleep without threads?

Hi All .... Quick question ... Using J2ME (CLDC 1.1, MIDP-2.1) is it possible to sleep the Midlet for a period of time (not using threads)... For example: public class myMidlet extends MIDlet{ public void startApp() { /* Sleep for 10 seconds */ /* The answer was: */ try { Thread.sleep(time_ms); ...

J2ME's extra annoying HTTP permission prompt

Some phones only prompt the user for permission the first time a connection is made. Others pop up the permission prompt whenever the MIDlet attempts to make a HTTP connection! What are the options if we want to suppress the prompt? Can we sign the JAR using only one CA (Certificate Authority) and have it work on all devices? Do we have...

Multiple instances of j2me midlet problem

I have a j2me midlet running on a cell phone. The code works fine, but the issue that comes up is that the program seems to be running more than one instance of itself. I have code at the beginning of the application inside the appStart() method that runs twice when the application starts. During the lifetime of the program, the code ...

Playing audio in j2me fails

I'm having difficulty playing any audio in my j2me application. I've tried to play a simple tone, only to receive an exception: "Device Busy, cannot play the tone". I've tried to play an mp3 file that is embedded in my .jar and ended up getting an exception stating that the media contains Unsupported Data. Here's the code that I u...

Update midlet wirelessly

I am currently developing a j2me application for the i290 and would like to be able to update to new midlet revisions in my application using code. The problem I am having is that one method that I know of that can do this, platformRequest(), is locked by motorola and I am not interesting in paying to sign my code. I need a way to upda...

Can A Midlet invoke another Midlet?

I been looking around and at sources like this one they say that a Midlet can invoke another if they are in the same suite, or if they are in the same namespace and in the same jar file. I do not understand what a Midlet-Suite is? Also after searching through the web I did not find any documentation or code examples for One Midlet invo...

how can Midlet calls static variable?

hi, i have a midlet which has got a static variable. i need to keep the record of all the instances created in this variable. but it does not work like static variable. my code segments look like this. i am running this midlet on sun wireless toolkit 2.5.5. i can create many objects of same midlet from that toolkit but still my counter ...