basics of mobile phone programming course day...

18
1 title Aalborg University, Mobile Device Group Basics of Mobile Phone Programming Course October 2007 Basics asics of Mobile obile Phone hone Programming rogramming Course ourse DAY 1 - Part 1 - DAY 3 – J2ME Gian Paolo Perrucci [email protected] Aalborg University title Aalborg University, Mobile Device Group Basics of Mobile Phone Programming Course October 2007 Agenda LECTURE: Course description Program of the course Pratical issues Nokia Platform overview J2ME – Java Mobile Architecture Architecture Java in a nutshell Emulator and SDK HANDS ON: Examples on the emulator Examples on the phone EXERCISE Get familiar with the emulator and phone Exercises title Aalborg University, Mobile Device Group Basics of Mobile Phone Programming Course October 2007 Administration of the Course Organizer: Gian Paolo Perrucci A6-303 e-mail: [email protected] Lecturers: Gian Paolo Perrucci, Morten V. Pedersen, Thomas Arildsen Schedule: NJ14 4-117 12.30-17.30 24/10/07 B2 - 104 12.30-17.30 17/10/07 B2 - 104 12.30-17.30 10/10/07 PLACE TIME DATE

Upload: lamlien

Post on 29-Jun-2018

216 views

Category:

Documents


0 download

TRANSCRIPT

1

title

Aalborg University, Mobile Device Group

Basics of Mobile Phone Programming Course

October 2007

BBasicsasics ooff MMobile obile PPhonehonePProgramming rogramming CCourseourse

DAY 1- Part 1 -

DAY 3 – J2ME

Gian Paolo [email protected]

Aalborg University

title

Aalborg University, Mobile Device Group

Basics of Mobile Phone Programming Course

October 2007

Agenda

LECTURE:Course description

– Program of the course– Pratical issues

Nokia Platform overviewJ2ME – Java Mobile Architecture

– Architecture– Java in a nutshell– Emulator and SDK

HANDS ON:Examples on the emulatorExamples on the phone

EXERCISEGet familiar with the emulator and phoneExercises

title

Aalborg University, Mobile Device Group

Basics of Mobile Phone Programming Course

October 2007

Administration of the Course

Organizer: Gian Paolo Perrucci– A6-303– e-mail: [email protected]

Lecturers: Gian Paolo Perrucci, Morten V. Pedersen, Thomas ArildsenSchedule:

NJ14 4-117 12.30-17.3024/10/07

B2 - 10412.30-17.3017/10/07B2 - 10412.30-17.3010/10/07

PLACETIMEDATE

2

title

Aalborg University, Mobile Device Group

Basics of Mobile Phone Programming Course

October 2007

Course Structure

Symbian– Symbian OS– Symbian/C++

JAVA 2 Micro Edition– Programming JAVA on mobile phonesModule 1

Module 2

Module 3

Python for S60– Programming on Phones and Emulator– Modules

title

Aalborg University, Mobile Device Group

Basics of Mobile Phone Programming Course

October 2007

Administration of the Course

List of participants – Please check your name

Sign it every day you participate to the courseSlides are available on the web Course is divided into – lectures – exercise

OpenMoko workshop in November

title

Aalborg University, Mobile Device Group

Basics of Mobile Phone Programming Course

October 2007

Certificate

Certificate and 1 ECTS for those who pass the exam

3

title

Aalborg University, Mobile Device Group

Basics of Mobile Phone Programming Course

October 2007

Passing the exam

Writing a small program on a mobile device with the program language you preferYou can come up with an idea, or choose one of the proposalsGroups of maximum 4 people

title

Aalborg University, Mobile Device Group

Basics of Mobile Phone Programming Course

October 2007

Mobile phones loaning

You can use your phone or....Loan one from us:– Photocopy of the student card needed– You are responsible for any possible damage

title

Aalborg University, Mobile Device Group

Basics of Mobile Phone Programming Course

October 2007

Motivation and aim for the course

Support the students to make their own applications on mobile phonesAttract students to our research activities Join our mobile phones group– Student helper positions open

Mobile phones provide a flexible and powerful platform

4

title

Aalborg University, Mobile Device Group

Basics of Mobile Phone Programming Course

October 2007

Mobile device group

Morten Lisborg JørgensenWireless Communication

Student helper

Frank H.P. FitzekDepartment of Communication Technology

Associate Professor

Gian Paolo PerrucciDepartment of Electronic Systems

PhD Student

Thomas ArildsenDepartment of Electronic Systems

PhD Student

Ben KrøyerDepartment of Electronic Systems

Engineer's assistant

Morten Videbæk PedersenDepartment of Electronic Systems

Student helper

title

Aalborg University, Mobile Device Group

Basics of Mobile Phone Programming Course

October 2007

Mobile Phone Platform

In the past research and development has been taken place on PC/laptop to achieve the maximum of flexibility. That was the tool to take for the proof of concept.Currently, new versions of mobile phones have a higher degree in flexibility and are the tools for the future for research and development.

title

Aalborg University, Mobile Device Group

Basics of Mobile Phone Programming Course

October 2007

AAU’s MP activities

5

title

Aalborg University, Mobile Device Group

Basics of Mobile Phone Programming Course

October 2007

Different Platforms

Symbian OSWindows OS (3° day)Maemo (3° day)Qtopia (3° day)

title

Aalborg University, Mobile Device Group

Basics of Mobile Phone Programming Course

October 2007

Windows OS

Windows OS on embedded devices

title

Aalborg University, Mobile Device Group

Basics of Mobile Phone Programming Course

October 2007

Versions overview

Windows CEWindows CE 3.0 Handheld PC 2000 Windows CE .NET 4.2Windows for Pocket PC 2000-2002Windows Mobile 2003 Windows Mobile 2003 SE Windows Mobile 5.0

6

title

Aalborg University, Mobile Device Group

Basics of Mobile Phone Programming Course

October 2007

Windows CE Timeline

title

Aalborg University, Mobile Device Group

Basics of Mobile Phone Programming Course

October 2007

Maemo

Maemo:Nokia 770 Internet Tablet

Nokia N800

title

Aalborg University, Mobile Device Group

Basics of Mobile Phone Programming Course

October 2007

Maemo

Maemo is an open development platform for applications and technology innovation for handheld devicesIt was developed by Nokia as part of its development process for the Nokia Internet Tablets devices and afterwards offered to the community as opensourceMaemo platform is composed of mainstream Linux and open source software widely deployed in the most popular Linux distributions

7

title

Aalborg University, Mobile Device Group

Basics of Mobile Phone Programming Course

October 2007

Qtopia Greenphone

Qtopia

title

Aalborg University, Mobile Device Group

Basics of Mobile Phone Programming Course

October 2007

what is the greenphone?

312 MHz Intel XScaleprocessor (ARM)64 MB ram128 MB flashMini-SD slot for expansionGSM/GPRS modem (tri-band)BluetoothCamera (1.3 megapixel)QVGA (320x240) LCD touch screenMini USB-portPrice: $695 ≈ 4000 kr. (+taxes)

20

title

Aalborg University, Mobile Device Group

Basics of Mobile Phone Programming Course

October 2007

greenphone software

Qtopia Phone Edition 4.1.7Linux 2.4.19 kernelSource code can be downloaded at trolltech.comPhone can be re-flashed through USB or flash-card

21

8

title

Aalborg University, Mobile Device Group

Basics of Mobile Phone Programming Course

October 2007

Symbian OS

title

Aalborg University, Mobile Device Group

Basics of Mobile Phone Programming Course

October 2007

Symbian OS

Symbian OS is a global industry standard for mobile phones systems and build especially for mobile devicesForum established in 1998 and owned by leading mobile phone manufacturersSymbian OS offers a de-facto standard operating system for wireless devices

title

Aalborg University, Mobile Device Group

Basics of Mobile Phone Programming Course

October 2007

Symbian Consortium

Ericsson (15.6%)Nokia (47.9%)Panasonic (10.5%)Samsung (4.5%)Siemens (8.4%)Sony Ericsson (13.1%)

9

title

Aalborg University, Mobile Device Group

Basics of Mobile Phone Programming Course

October 2007

Symbian Licenses

title

Aalborg University, Mobile Device Group

Basics of Mobile Phone Programming Course

October 2007

Symbian Limited

Gartner predicts that a billion cell phones will ship in 2009 (July 19, 2005)Sales of smart phones will represent about one-fifth (or 200 million) of all mobile handset sales by 2008

title

Aalborg University, Mobile Device Group

Basics of Mobile Phone Programming Course

October 2007

Worldwide Mobile Terminal Sales

Worldwide Mobile Terminal Sales to End-Users in 2Q07 (Thousands of Units)

100.0230,750.9100.0270,871.5TOTAL20.146,764.119.352,484.1Others

6.314,639.66.818,433.4LG6.615,308.99.024,317.5Sony Ericsson

11.225,757.513.436,191.8Samsung21.950,532.714.639,486.1Motorola33.777,748.136.999,958.6Nokia

2Q06 MarketShare (%)

2Q06Sales

2Q07 MarketShare (%)

2Q07SalesCompany

Source: Gartner (August 2007)

10

title

Aalborg University, Mobile Device Group

Basics of Mobile Phone Programming Course

October 2007

Worldwide Mobile Devices Shipment

title

Aalborg University, Mobile Device Group

Basics of Mobile Phone Programming Course

October 2007

Some questions.....

Who has a mobile phone?Who doesn’t have a mobile phone?

Who knows which OS is on his phone?

Who has Symbian OS on his phone?

Who knows which version of Symbian OS is on his phone?

title

Aalborg University, Mobile Device Group

Basics of Mobile Phone Programming Course

October 2007

Different Nokia Series

Series 20Series 30Series 40Series 60Series 80Series 90

Largest number of shipped terminals for Series 60

11

title

Aalborg University, Mobile Device Group

Basics of Mobile Phone Programming Course

October 2007

Series 20

Mobile phones with the following services– SMS

Monochrome Display– 84 x 48 Pixel

Noka 6130 Nokia 1100 Nokia 6210

title

Aalborg University, Mobile Device Group

Basics of Mobile Phone Programming Course

October 2007

Series 30

Mobile phones with the following services– SMS, EMS, MMS,

J2ME, XHTML Monochrome and color Display– 96 x 65 Pixel

Nokia 8280 Nokia 3510

title

Aalborg University, Mobile Device Group

Basics of Mobile Phone Programming Course

October 2007

Series 40

S40 2nd EditionS40 1st EditionS40 3rd Edition

S40 5th Edition

12

title

Aalborg University, Mobile Device Group

Basics of Mobile Phone Programming Course

October 2007

Series 40 1st Ed.

Mobile phones with the following services– SMS, EMS, MMS, J2ME,

XHTML Display– 96 x 65/68 Pixel– 128 x 128 Pixel

Nokia 3100 Nokia 5100 Nokia 6100

title

Aalborg University, Mobile Device Group

Basics of Mobile Phone Programming Course

October 2007

Series 40 2nd Ed.

Mobile phones with the following services– SMS, EMS, MMS, J2ME,

XHTML

Display– 128 x 128 Pixel– 128 x 160 Pixel– 208 x 208 Pixel

Nokia 5140 Nokia N-Gage Nokia 6230

title

Aalborg University, Mobile Device Group

Basics of Mobile Phone Programming Course

October 2007

Series 40 3rd Ed.

Mobile phones with the following services– SMS, EMS, MMS,

J2ME, XHTML Display– 240 x 320 Pixel

Nokia 6280 Nokia 6211 Nokia 6126

13

title

Aalborg University, Mobile Device Group

Basics of Mobile Phone Programming Course

October 2007

Series 45

Mobile phones with the following services– First 3G phones

6650

Display– 128 x 160

Nokia 6650

title

Aalborg University, Mobile Device Group

Basics of Mobile Phone Programming Course

October 2007

Series 40 3rd Ed. FP1

Mobile phones with the following services– SMS, EMS, MMS, IM,J2ME, HTML,

XHTML – Bluetooth 2.0 +EDR

Double display– 240 x 320 Pixel– 128 x 160 Pixel

Nokia 6280 Nokia 6211 Nokia 6126

title

Aalborg University, Mobile Device Group

Basics of Mobile Phone Programming Course

October 2007

Series 40 3rd Ed. FP2

Mobile phones with the following services– SMS, EMS, MMS, J2ME, XHTML – Flash Lite 2.0 – Bluetooth 2.0 +EDR

Double display– 240 x 320 Pixel– 128 x 160 Pixel

Nokia 6280 Nokia 6211 Nokia 6126

14

title

Aalborg University, Mobile Device Group

Basics of Mobile Phone Programming Course

October 2007

Series 40 5th Ed.

Nokia 6280 Nokia 6211 Nokia 6126

Mobile phones with the following services– SMS, EMS, MMS, J2ME, XHTML – Flash Lite 2.1– MIDP 2.1– Bluetooth 2.0 +EDR

Double display– 240 x 320 Pixel– 128 x 160 Pixel

title

Aalborg University, Mobile Device Group

Basics of Mobile Phone Programming Course

October 2007

Series 60 Evolution

S60 2nd EditionS60 1st Edition

S60 3rd Edition

S60 Future EditionFP3FP2FP1

FPXFP1

FPXFP1

title

Aalborg University, Mobile Device Group

Basics of Mobile Phone Programming Course

October 2007

Series 60 1st Edition

Mobile phones with the following services– SMS, EMS, MMS, J2ME,

XHTML

Operating System– Symbian

Display– 176 x 208 Pixel

Nokia 7650 Nokia 3600

15

title

Aalborg University, Mobile Device Group

Basics of Mobile Phone Programming Course

October 2007

Series 60 2nd Edition

Mobile phones with the following servicesDisplay– 176 x 208 Pixel (Standard)– 208 x 176 Pixel [Landscape]– 240 x 320 Pixel (Quarter QVGA)– 320 x 240 Pixel [Landscape]– 352 x 416 Pixel (Double)– 416 x 352 Pixel [Landscape]

Feature Pack 1:– HTML Browser-Extensions – EDGE support

Feature Pack 2:– Support for WCDMA (UMTS)

Feature Pack 3:– Larger resolutions (240 x 320 und 352 x

415 Pixel)

title

Aalborg University, Mobile Device Group

Basics of Mobile Phone Programming Course

October 2007

Series 60 Evolution

Series 60 2nd Ed.

Series 60 2nd Ed. FP 1Nokia 6600

Nokia 6670 Nokia 6270

title

Aalborg University, Mobile Device Group

Basics of Mobile Phone Programming Course

October 2007

Series 60 Evolution

Series 60 2nd Ed. FP2

Series 60 2nd Ed. FP3

Nokia 6630 Nokia 6680 Nokia 6681 Nokia 6682

Nokia N90 Nokia N70

16

title

Aalborg University, Mobile Device Group

Basics of Mobile Phone Programming Course

October 2007

Series 60 3rd Edition

As before for the 2nd editionMore attention on the security issues

Nokia E61 Nokia E61 Nokia E70 Nokia N71

Nokia N80 Nokia N91 Nokia N93

title

Aalborg University, Mobile Device Group

Basics of Mobile Phone Programming Course

October 2007

Series 60 3rd Ed. FP1

N95– GPS– 5.0 MegaPixel camera– Local Connectivity:

Bluetooth 2.0 +EDRInfraredMini USBUSB 2.0WLAN

– And much more………In only 120 gr !!!!!!!!!

title

Aalborg University, Mobile Device Group

Basics of Mobile Phone Programming Course

October 2007

Series 80

Mobile phones with the following services

– SMS, EMS, MMS, Personal Java, XHTML, PIM

– WLANOperating System

– SymbianDisplay

– 462x200 Pixel (92x)– 640x200 Pixel (93x/95x)

External Display– Series 30/40

Nokia 9300 Nokia 9500

17

title

Aalborg University, Mobile Device Group

Basics of Mobile Phone Programming Course

October 2007

Series 90

Mobile phones with the following services– SMS, EMS, MMS, J2ME, XHTML

Operating System– Symbian

Display– 640 x 320 Pixel – Touchscreen

Nokia 7700

title

Aalborg University, Mobile Device Group

Basics of Mobile Phone Programming Course

October 2007

Intermediate Discussion

Large number of series for the mobile phonesLargest number of shipped mobile phones for Series 40 and 60.Evolution of Series 80 and Series 90 are not the future in terms of wide spread application.Let’s focus on Series 60

title

Aalborg University, Mobile Device Group

Basics of Mobile Phone Programming Course

October 2007

Mapping Series 60 and Symbian OS

Edition and FP

1st Ed2nd Ed

2nd Ed FP12nd Ed FP22nd Ed FP3

3rd Ed3rd Ed. FP1

Symbian OS

→ OS v6.1→ OS v7.0s→ OS v7.0s→ OS v8.0a→ OS v8.1a→ OS v9.1→ OS v9.2

S60 2nd EditionS60 1st Edition

S60 3rd Edition

S60 Future EditionFP3FP2FP1

FPXFP1

FPXFP1

18

title

Aalborg University, Mobile Device Group

Basics of Mobile Phone Programming Course

October 2007

Software

Phones are not used only for voice or SMS anymore, but........

......not only games!!!

title

Aalborg University, Mobile Device Group

Basics of Mobile Phone Programming Course

October 2007

Software development

How to program a smartphone?

What are the supported languages?

How to get started?

title

Aalborg University, Mobile Device Group

Basics of Mobile Phone Programming Course

October 2007

Possible choices on Series 60

Python for S60

PortablePortable PowerfulPowerfulEasy to developEasy to develop