Mobile Programming 26 Ordibehesht 1390 Mobile Programming Ordibehesht
Mobile Programming 26 Ordibehesht 1390 Mobile Programming - Ordibehesht 1390 1
What to learn today? �User application in a mobile device �Mobile platforms �Java Editions �J 2 ME and how it helps us �How to code a small program Mobile Programming - Ordibehesht 1390 2
References These slides and more resources will be sent to you Mobile Programming - Ordibehesht 1390 3
User Application in a Mobile Device �Any user application should be run either directly on top of an Operation System or through a Virtual Machine �Device processor should have enough processing power to handle both internal regular and housekeeping tasks and user application needs Mobile Programming - Ordibehesht 1390 4
User Application in a Mobile Device MIDlets JVM Applications Operating System Processor Mobile Programming - Ordibehesht 1390 5
Mobile/Handheld Platforms �Comprehensive tool chain is available for user application development in each platform �Current major platforms are: Mobile Programming - Ordibehesht 1390 6
Smartphone Share Current(2010) Mobile Programming - Ordibehesht 1390 7
Java �A simple, secure, portable, multithreaded and object oriented programming language Mobile Programming - Ordibehesht 1390 8
Object Oriented Mobile Programming - Ordibehesht 1390 9
Platform Independency Mobile Programming - Ordibehesht 1390 10
Java Editions �Java has four major editions: ◦ Java Card �for smartcards. ◦ Java Platform, Micro Edition (Java ME) �targeting environments with limited resources. ◦ Java Platform, Standard Edition (Java SE) �targeting workstation environments. ◦ Java Platform, Enterprise Edition (Java EE) �targeting large distributed enterprise or Internet environments. Mobile Programming - Ordibehesht 1390 11
J 2 ME �We use Java Micro Edition for Mobile programming �Most of smart phones support Java �We will make a JAR file and send it to the device Mobile Programming - Ordibehesht 1390 12
Start programming for mobile �What ◦ ◦ we need for programming: Java Development Kit (JDK) Emulator Wireless Toolkit (WTK) Netbeans IDE (or Easy. Eclipse) Netbeans Mobility Pack Mobile Programming - Ordibehesht 1390 13
CLDC & MIDP �Connected Limited Device Configuration ◦ Specification of the framework for J 2 ME describing the basic set of libraries �Mobile Information Device Profile ◦ Specification published for the use of Java on embedded devices Mobile Programming - Ordibehesht 1390 14
CLDC & MIDP �Pay attention to the device Mobile Programming - Ordibehesht 1390 15
Application Life-Cycle Mobile Programming - Ordibehesht 1390 16
Let’s Start Coding! �Example 1: Start and Resume the Application �Example 2: Displayables �Example 3: Simple Adder Mobile Programming - Ordibehesht 1390 17
- Slides: 17