S
SKIL
Guest
Hello!
I am a medium-level programmer. I have downloaded all the stuff needed to make & compile a little program for my 3510i. As I make this program:
Welcome.java
import javax.microedition.midlet.*;
import javax.microedition.lcdui.*;
public class Welcome extends MIDlet implements CommandListener
{
private Display display;
private Form frmain;
private Command cmdExit;
public Welcome ()
{
display=Display.getDisplay(this);
cmdExit=new Command ("Iesire",Command.EXIT,1);
frmain=new Form("Prima Aplicatie");
frmain.addCommand(cmdExit);
frmain.setCommandListener(this);
}
public void startApp()
{
display.setCurrent(frmain);
}
public void pauseApp()
{
}
public void destroyApp(boolean unconditional)
{
}
public void commandAction(Command c, Displayable s)
{
if (c==cmdExit)
{
destroyApp(false);
notifyDestroyed();
}
}
}
Compiling this, gets a Welcome.Jad and Welcome.Jar. They both work OK on the 3510i computer emulator from NOKIA. But when i upload them to my mobile phone, when i open the applications, it gives me the error: APPLICATION NOT SUPPORTED!
I can upload ALREADY MADE APPLICATIONS AND GAMES, but what can be wrong?
Welcome.Jad looks like this:
MIDlet-1: Welcome
MIDlet-Description: Hello World
MIDlet-Jar-Size: 1330
MIDlet-Jar-URL: Welcome.jar
MIDlet-Name: Test
MIDlet-Vendor: Me
MIDlet-Version: 2.0
MicroEdition-Configuration: CLDC-1.0
MicroEdition-Profile: MIDP-2.0
The JAR size is correct.
Can you please help me?
I am a medium-level programmer. I have downloaded all the stuff needed to make & compile a little program for my 3510i. As I make this program:
Welcome.java
import javax.microedition.midlet.*;
import javax.microedition.lcdui.*;
public class Welcome extends MIDlet implements CommandListener
{
private Display display;
private Form frmain;
private Command cmdExit;
public Welcome ()
{
display=Display.getDisplay(this);
cmdExit=new Command ("Iesire",Command.EXIT,1);
frmain=new Form("Prima Aplicatie");
frmain.addCommand(cmdExit);
frmain.setCommandListener(this);
}
public void startApp()
{
display.setCurrent(frmain);
}
public void pauseApp()
{
}
public void destroyApp(boolean unconditional)
{
}
public void commandAction(Command c, Displayable s)
{
if (c==cmdExit)
{
destroyApp(false);
notifyDestroyed();
}
}
}
Compiling this, gets a Welcome.Jad and Welcome.Jar. They both work OK on the 3510i computer emulator from NOKIA. But when i upload them to my mobile phone, when i open the applications, it gives me the error: APPLICATION NOT SUPPORTED!
I can upload ALREADY MADE APPLICATIONS AND GAMES, but what can be wrong?
Welcome.Jad looks like this:
MIDlet-1: Welcome
MIDlet-Description: Hello World
MIDlet-Jar-Size: 1330
MIDlet-Jar-URL: Welcome.jar
MIDlet-Name: Test
MIDlet-Vendor: Me
MIDlet-Version: 2.0
MicroEdition-Configuration: CLDC-1.0
MicroEdition-Profile: MIDP-2.0
The JAR size is correct.
Can you please help me?