انت هنا الان : شبكة جامعة بابل > موقع الكلية > نظام التعليم الالكتروني > مشاهدة المحاضرة

The main steps to build first application in J2ME

Share |
الكلية كلية تكنولوجيا المعلومات     القسم قسم شبكات المعلومات     المرحلة 4
أستاذ المادة علاء الدين عباس عبد الحسن       09/10/2013 10:35:55
Build the first program

In java and C we see that execution steps are begin from the MAIN() function , where in J2ME is little deferent and well begin from the STARTAPP() function for simple reason, that s it when we write a program in java or c its enough to write the main function to say to the compiler to begin from here .where in J2ME we extends class form MIDlet which founded in javax.microedition.midlet and there are three abstract functions (destroyApp , pauseApp , startApp) and one of programming fundamental that the abstract function in extended class should be completely written . for this reasons the main program well be extended from the class MIDlet and well be start form STARTAPP() function .
The MIDP Model and Lifecycle.
The MIDlet forms the application framework that executes on CLDC devices under the Mobile Information Device Profile (MIDP). Every application must extend the MIDlet class found in the javax.microedition.midlet package. The application management software (AMS) manages the MIDlet itself. The AMS is a part of the device’s operating environment and guides the MIDlet through its various states during the execution process. Unlike desktop or server applications, MIDlets should not have a public static void main() method. MIDlets are initialized when the AMS provides the initial class needed by CLDC to start the MIDlet. The AMS then guides the MIDlet through its various changes of state. We shall look at these states next.

MIDlet States
Once a MIDlet has been instantiated, it resides in one of three possible states. A state is designed to ensure that the behavior of an application is consistent with the expectations of the end-users and device manufacturer.
Initialization of the application should be short; it should be possible to put an application in a non-active state; and it should also be

المادة المعروضة اعلاه هي مدخل الى المحاضرة المرفوعة بواسطة استاذ(ة) المادة . وقد تبدو لك غير متكاملة . حيث يضع استاذ المادة في بعض الاحيان فقط الجزء الاول من المحاضرة من اجل الاطلاع على ما ستقوم بتحميله لاحقا . في نظام التعليم الالكتروني نوفر هذه الخدمة لكي نبقيك على اطلاع حول محتوى الملف الذي ستقوم بتحميله .
الرجوع الى لوحة التحكم