Click here to Skip to main content
Click here to Skip to main content
Articles » Languages » Java » Beginners » Downloads
 
Add your own
alternative version

J2ME: Hello World Mobile Application

, 17 Mar 2011 CC (ASA 3U)
This is a J2ME beginner article that describes how to write your Hello World J2ME application
Output_Files.zip
HelloWorld.jad
HelloWorld.jar
Source_File.zip
import javax.microedition.lcdui.*;
import javax.microedition.midlet.*;

/**
 *
 * @author Fadi Z. Hania
 * <a title="Fadi Hania Blog"  href="http://fadihania.com/" target="_blank">Fadi Hania Blog</a>
 * Follow Me On Twitter: @fadihania
 *
 */

public class HelloMIDlet extends MIDlet {
    private Display display;
    private Form helloFrm;

    public HelloMIDlet() {
        helloFrm = new Form("Hello World");
    }

    protected void startApp() {
        display = Display.getDisplay(this);
        display.setCurrent(helloFrm);
    }

    protected void pauseApp() {
    }

    protected void destroyApp(boolean unconditional) {
    }
}

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article, along with any associated source code and files, is licensed under The Creative Commons Attribution-Share Alike 3.0 Unported License

Share

About the Author

Fadi Hania
Software Developer (Senior) Wateen Technologies
Palestinian Territory (Occupied) Palestinian Territory (Occupied)
A professional developer with a B.Sc. in Computer Engineering. Developing Web, Moblie and Desktop applications and interested in reading and blogging. A cofounder of Wateen Technologies an application development and hosting company.
Visit Fadi Hania Blog to read articles written by Fadi Hania, follow Fadi Hania at Twitter and become a friend with Fadi Hania on Facebook
Follow on   Twitter

| Advertise | Privacy | Terms of Use | Mobile
Web02 | 2.8.1411022.1 | Last Updated 17 Mar 2011
Article Copyright 2011 by Fadi Hania
Everything else Copyright © CodeProject, 1999-2014
Layout: fixed | fluid