04-12-2012, 03:41 PM
2 Platform Micro Edition
FOR PRACT 6 Java Plateform Micro Edition.docx (Size: 497.02 KB / Downloads: 45)
J2ME TUTORIAL:
J2ME (Java 2 Platform, Micro Edition) is a technology that allows programmers to use theJava programming language and related tools to develop programs for mobile wireless information devices such as cellular phones and personal digital assistants (PDAs). J2ME consists of programming specifications and a special virtual machine, the K Virtual Machine that allows a J2ME-encoded program to run in the mobile device.
Since 1995, Java has grown into a complete and mature object-oriented development platform that allows easy and fast applications development for a great many hardware and software platforms, thereby significantly lowering cost of application development and maintenance.
In 1999, Sun divided Java into three separate editions. Java 2, Standard Edition (J2SE) is intended for use on common personal computers. Java 2, Enterprise Edition (J2EE) is designed for use on servers. Java 2, Micro Edition (J2ME) is designed for small devices with a limited processor power and small memory size. Mobile phones, personal digital assistants (PDAs), consumer electronics, and embedded devices are common examples of J2ME capable devices.
MIDlet Lifecycle
A MIDlet lifecycle have following steps...
• startApp()
• pauseApp()
• destroyApp()
By default MIDlet is in the paused states. When the application is executed by default startApp()method will call and when close the application the destroyApp() method will be called. But when your constructor is not null type then it will be executed firstly. The source code of life cycle execution is as follows: