Create and code your project

Once the Nokia Asha SDK is installed you can start creating your apps immediately. This page guides you through creating a project in the Nokia IDE for Java ME and adding a code template to create a basic, working app.

Please note that the video shows the Nokia Asha SDK 1.0 — the steps and actions are still applicable to the 1.2 SDK.

  1. Create a MIDlet Project from the New option on the File menu.
  2. Add additional SDKs with the Device SDK Selector.
  3. Add a Java ME MIDlet from the New option on the File menu.
  4. Add custom code to your app.

Step-by-step — Create and code your project

Step 1 — Create a MIDlet Project from the New option on the File menu.

A Nokia IDE for Java ME project contains the information about your app’s source files and the Java ME environment it’s being created for. To create a project, on the File menu point to New and click MIDlet Project. The New MIDlet Project dialogue displays. Name your project.

Step 2 — Add additional SDKs

You may wish to add the SDKs for an Asha or Series 40 phone you own or for other platforms or phones you want to target. To do this, click Device SDK Selector. The selector provides you with options to select an SDK by phone model, by screen resolution, by form factor, and by searching for specific capabilities that you want to code against.

Click Details to get more information about the SDK and a link to the SDK’s release notes. Click Install to download and install the SDK and repeat this for all the additional SDKs you want to install.

Once you have installed any additional SDKs you can click Edit to adjust each SDK’s features, such as the launch command and installed libraries, but to get started you need only click Finish in the New MIDlet Project dialogue to create the MIDlet project.

Step 3 — Add a Java ME MIDlet from the New option on the File menu.

Now you add a MIDlet to the project, on the File menu point to New and click Java ME MIDlet. The New Java MIDlet dialogue displays. Provide a Package Name and Name for your MIDlet. Click Next.

You now have the option to include a number of application templates in the MIDlet you create. To simplify this getting started use one, in this case the Game Template. (Once you’ve completed the getting started you may wish to return and explore these templates, in particular you may wish to note that a template for Nokia Ad Exchange is included.)

Click Finish to create the MIDlet.

Step 4 — Add your code

For your own apps you would now add the code you need to implement the apps’ functionality. In this case the template provides a working app, so you don’t need to change it.

Now you can build the app and run it in the emulator ›