java-me

Netbeans OutOfMemoryError when running j2me apps

I always get java.lang.OutOfMemoryError: Java heap space error when I try to run any J2ME program in Netbeans (with the big green play icon). How can it be fixed? (I can run J2ME programs after I build them in netbeans and double-click on the generated JAD file.) ...

stopping a thread when cancel command is triggered by the user

Mobile app provides the user with the option of downloading the email attachment from remote.Connecting with a remote server and downloading the content is carried out in a separate thread.A dialog is shown to the user with cancel command.Herewith I am providing the pseudo code. new Thread(new Runnable() public void run(){ try{ ...

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

questions on KVM(JVM)

is it possible different KVMs in different mobiles?who is the owner of that KVM(sun or others?suppose if i want manufacture GSM mobile,how can it support j2me applications, i have to get permissions from sun micro systems to purchase KVM(kilobyte virtual machine) can anyone give answer in detail? ...

The hunt for the J2ME-friendly IoC container is on!

Hi all, I'm in the beginning phases of a Blackberry/J2ME project -- and along with other limitations that come with this wonderful platform, the lack of support for reflection and 1.3 language level mean that the vast majority of existing IoC containers are unusable. (Google has Guice for Android with no AOP, but even that requires sup...

Flushing from a RecordControl w/o calling commit()

I'm developing on the Samsung Instinct, so I'm not certain that this question is relevant across other J2ME platforms. On the Instinct, when I start recording with a RecordControl, the receiving output stream remains empty until I call commit(). Is there a way to purge the so-far recorded data from a RecordControl to the output stream ...

Debug as Blackberry Device + Socket connection

Hello, I am debugging the Blackberry application using Eclipse -> Debug as -> Blackberry device Whenever I try to establish socket connection with the server in LAN , I get IOException and I am not able to connect to LAN server through real device. I am using Blackberry Pearl 8100 device. Please help. ...

Where Can I get J2ME Tutorials

Where can I get the good J2ME tutorials. ...

sending image from one mobile to another via sms using j2me language

hello, i am programming a mobile application in j2me in which i need to send an image from one mobile to another via sms. the problem is being encountered at the receiving end.the image is not being decoded properly.it is throwing ioexception....i m posting the code here..plz help me. import javax.microedition.midlet.*; import javax.m...

left and right command menus in LWUIT form

Using LWUIT framework to develop mobile application. In LWUIT by default first command is placed in the left and subsequent commands will be placed in the right menu of the form including the command which is already placed in form left.I need to add two menus to form.Left menu contains general application specific commands such as "Mini...

SQLite and J2ME

is it possible to use SQLite for a j2me application ? has anyone ever tried to do so ? ...

On Samsung Omnia, a Java MIDLet cannot connect after the GPRS connection is shut down by the phone

Hi, i have an Java J2ME application that does (at user request) create HttpConnections to a server. The application works properly on most phones, including Samsung Omnia. The problem on this (Omnia) is that at some point, the phone disconnects from the GPRS network. The application is still in use but not trying to make connections to ...

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

java.lang.InternalError: Location with invalid code index... What?

I am creating a j2me application, and when I try to debug it in netbeans, I get an error when I reach a point in my code. The code is as follows class MyClass{ public MyClass() { OtherClass oc = new OtherClass(); oc.MyMethod(); } } The other method is as follows: public void MyMethod() { boolean isVal...

DataInputStream blocked...

Hi, I am implementing threading with Blackberry for the first time. I want to read data continuosly from server,i.e. I have to always llisten to server for incoming data. I am opening DataInputStream to read data. Whenever the thread executes 2nd time,I get null pointer exception while opening datainputstream... How do I solve this? ...

J2ME TextField Exception

When I instantiate a textField, I have a number in it that I want to be the default text. The problem is, I can't seem to be able to place that value into the textfield without getting an error. The strange thing about it is that the same TextField is what I use to set the value of the variable containing the number. TextField myTF = ...

OutOfMemoryError in j2me application

I'm getting OutOfMemoryError in a j2me application. How can I find what is causing this error? And how to prevent getting this error? EDIT: I make a http request. While the request isn't completed the screen shows a loading image (like a browser shows when a page is loading). This was done by creating an Image and repainting the screen...

Problems creating a Java Mobile Application project.

I have installed the Netbeans 6.7 IDE with Java ME included, but cannot create a Mobile Application project from the Java ME category. When I select the project type the wizard stops at "Finding Feature" with the message: Not all requested modules can be enabled: [StandardModule:org.netbeans.modules.mobility.end2end.kig jarFile:C:\Prog...

double type array use in J2ME

I have use Double type array, it works in Emulator but showing error in mobile, what is the problem?? ...