This Article will helps you to Certain links to download and Install Softwares To work with J2me Series40 Basic Application.
Step-1:You need to download and Install any Preferred IDE either NetBeans or Eclipse,I've Done with NetBeans IDE 7.1.2.(Link to Download NetBeans IDE Click Here)
Step-2: You need to Download and Install Latest Nokia SDK 2.0 for java to test your Application in this Simulator.
Link to Download Click Here (You Need to Download this Nokia SDK 2.0 for Java — for Series 40 apps)
Step-3:After you Install Both ,Open your NetBeans IDE
1)Go to Tools and select java Platform:
2)Click on AddPlatForm:
Step-1:You need to download and Install any Preferred IDE either NetBeans or Eclipse,I've Done with NetBeans IDE 7.1.2.(Link to Download NetBeans IDE Click Here)
Step-2: You need to Download and Install Latest Nokia SDK 2.0 for java to test your Application in this Simulator.
Link to Download Click Here (You Need to Download this Nokia SDK 2.0 for Java — for Series 40 apps)
Step-3:After you Install Both ,Open your NetBeans IDE
1)Go to Tools and select java Platform:
2)Click on AddPlatForm:
3)You are Displayed with Nokia SDK 2.0 Simulator,Just select it and click on next:
4)You will be Successfully able to Integrated your IDE with your Simulator
Step-4: Go to File menu on NetBeans and click NewProject
Choose JavaME From Categories and Choose Mobile Application From Projects and Click Next
Step-5:Give your Project Name and Check set as Main Project and Create Hello Midlet like below
Step-6:Select your Emulator in this Step like below and click on finish
Step-7: Finally you should code your app like this:
/*Step-8: After you Coded the Midlet Class ,Right Click on your Project and you need to Run your Application
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package hello;
import javax.microedition.lcdui.Display;
import javax.microedition.lcdui.Form;
import javax.microedition.lcdui.Ticker;
import javax.microedition.midlet.*;
/**
* @author welcome
*/
public class HelloMidlet extends MIDlet {
private Display display;
private Form form;
//Constructor
public HelloMidlet() {
form = new Form("HelloWorld");
}
public void startApp() {
display = Display.getDisplay(this);
form.setTicker(new Ticker("Hello World"));
display.setCurrent(form);
}
public void pauseApp() {
}
public void destroyApp(boolean unconditional) {
}
}
Note:You can also Create your Midlet Class Manually like this ,Right click on your Source and select new Midlet
Midlet: It is a Class just like Main class in Core Java.
In Java-me The Program Execution will start from Midlet Class
It is Having Life Cycle Methods
Few are:
1)StartApp()
2)PauseApp()
3)DestroyApp()
No comments:
Post a Comment