Integrate nokia series40 sdk with eclipse


Steps to download and install the Series40 SDK and integrate with eclipse:
1. Download the Series40 Sdk from Nokia SDK
2. Series 40 sdk runs only on windows.
3. Extract the file and structure should be something like:

4. The folder contains a exe , zip and txt file.
5. Run the exe to install the SDK.
6. Once done extract the Series_40_6th_Edition_SDK_Feature_Pack_1_Installation.zip inside main folder. It contains a installation Pdf .
7. Open the Pdf and follow the instructions given to integrate with the Eclipse.
8. Once done, restart the eclipse.

Create the project in eclipse:
1. Create a new project J2ME -> J2ME Midlet Suite.
2. Create new Class “hello world”.
3. Type in the following code :

import javax.microedition.midlet.MIDlet;
import javax.microedition.lcdui.*;

public class HelloWorld extends MIDlet implements CommandListener {

public HelloWorld() {
}
// Display
private Display display;
// Main form
private Form form;
// For the message
private StringItem stringItem;
// For the exit command
private Command exitCommand;

public void commandAction(Command command, Displayable displayable) {
if (displayable == form) {
if (command == exitCommand) {
exitMIDlet();
}
}
}

public void startApp() {
// Create form
stringItem = new StringItem("Hello", "Hello World!");
form = new Form(null, new Item[] {stringItem});
exitCommand = new Command("Exit", Command.EXIT, 1);
form.addCommand(exitCommand);
form.setCommandListener(this);

// Get display for drawning
display = Display.getDisplay(this);
display.setCurrent(form);
}

// Your MIDlet should not call pauseApp(), only system will call this life-cycle method
public void pauseApp() {
}

// Your MIDlet should not call destroyApp(), only system will call this life-cycle method
public void destroyApp(boolean unconditional) {
}

public void exitMIDlet() {
display.setCurrent(null);
notifyDestroyed();
}

}

Run the project in Eclipse:
Right click on the HelloWorld Class. Select Run As -> Emulated J2ME Midlet .

The emulator takes around 30-45 secs to start.

Once the emulator is started following screen will be up:

2010 in review


The stats helper monkeys at WordPress.com mulled over how this blog did in 2010, and here’s a high level summary of its overall blog health:

Healthy blog!

The Blog-Health-o-Meter™ reads Wow.

Crunchy numbers

Featured image

A helper monkey made this abstract painting, inspired by your stats.

Madison Square Garden can seat 20,000 people for a concert. This blog was viewed about 65,000 times in 2010. If it were a concert at Madison Square Garden, it would have performed about 3 times.

In 2010, there were 13 new posts, growing the total archive of this blog to 77 posts. There were 16 pictures uploaded, taking up a total of 933kb. That’s about a picture per month.

The busiest day of the year was June 5th with 479 views. The most popular post that day was Connecting database using Spring JdbcTemplate.

Where did they come from?

The top referring sites in 2010 were java-questions.com, dzone.com, google.co.in, stackoverflow.com, and google.com.

Some visitors came searching, mostly for spring aop tutorial, spring properties file, spring aop example, java equals, and aop tutorial.

Attractions in 2010

These are the posts and pages that got the most views in 2010.

1

Connecting database using Spring JdbcTemplate June 2010
4 comments

2

Spring AOP tutorial -I May 2009
14 comments

3

how to access properties file in Spring March 2009
2 comments

4

Use of hashcode() and equals() February 2009
12 comments

5

What is difference between == and equals() in java? March 2009
4 comments