Join Now
Quality Rating:
  • Currently 0.0 / 5
(0.0 / 5 - 0 votes cast)
Expertise Level:
  • Currently 0.0 / 5
(0.0 / 5 - 0 votes cast)

This page was last modified 07:50, 27 July 2007.

How to Start your first application in Java ME

From Forum Nokia Wiki


After You install your IDE "E-clipse as Example" and Carbide.J

you want know what to do to start hello world Midlet

CLick File-->New Project-->MIDP project-->Write your project name ex:"Hello World"-->select your target device SDK ex:"S60 emulator"-->Finish

now you have impty project New-->Class--->specify the class name

write this code


import javax.microedition.lcdui.*;
 
public class HelloWorld extends MIDlet{
 
Display display=null;
 
Form form=null;
 
public HelloWorld(){
 
display=Display.getDisplay(this);//get the display controller 
 
form=new Form("Hello World");//get Form instance
 
form.append("this is my first application");
 
}
 
public void startApp(){
 
display.setCurrent(form);
 
}
 
public void destroyApp(boolean arg){
 
display=null;
 
form=null;
 
}
 
public void pauseApp(){}
 
}

using Carbide.j u can know Create your Jar file and deploy it to your device and have fun

Related Discussions
Thread Thread Starter Forum Replies Last Post
help for start needed jaska70 Mobile Java Tools & SDKs 2 2005-02-13 17:08
Internet networking settings - readable from Java? spieri Mobile Java Networking & Messaging & Security 1 2006-10-21 00:00
Connect C++ with Java? doggett78 Bluetooth Technology 1 2003-06-24 18:15
IMSI flarichi Mobile Java General 3 2007-08-19 03:30
Java app with series 60 ddeveloper General Symbian C++ 1 2005-08-06 09:05
 
Powered by MediaWiki
     
     RDF Facets:
     
     
     qfnZtopicQUqfnTopicZjavaQ
     qfnZtypeQUqfnTypeZCommunityContentQ
     qfnZtypeQUqfnTypeZWebpageQ
     qfnZtypeQUqfnTypeZWikiContentQ
     qmarsZlanguageQUxhttpE3aE2fE2fswE2enokiaE2ecomE2flanguageE2d1E2fenX