0% ont trouvé ce document utile (0 vote)
25 vues32 pages

Programmation J2ME pour mobiles

Le document présente un plan de cours sur la programmation des terminaux mobiles, en se concentrant sur J2ME et ses applications. Il aborde les contraintes matérielles des mobiles, l'évolution technologique, ainsi que les différentes couches et configurations de J2ME. Enfin, il décrit les étapes de déploiement d'une application J2ME sur un périphérique mobile.
Copyright
© All Rights Reserved
Nous prenons très au sérieux les droits relatifs au contenu. Si vous pensez qu’il s’agit de votre contenu, signalez une atteinte au droit d’auteur ici.
Formats disponibles
Téléchargez aux formats PDF, TXT ou lisez en ligne sur Scribd
0% ont trouvé ce document utile (0 vote)
25 vues32 pages

Programmation J2ME pour mobiles

Le document présente un plan de cours sur la programmation des terminaux mobiles, en se concentrant sur J2ME et ses applications. Il aborde les contraintes matérielles des mobiles, l'évolution technologique, ainsi que les différentes couches et configurations de J2ME. Enfin, il décrit les étapes de déploiement d'une application J2ME sur un périphérique mobile.
Copyright
© All Rights Reserved
Nous prenons très au sérieux les droits relatifs au contenu. Si vous pensez qu’il s’agit de votre contenu, signalez une atteinte au droit d’auteur ici.
Formats disponibles
Téléchargez aux formats PDF, TXT ou lisez en ligne sur Scribd

Programmation des terminaux

mobiles

ESPRIT Imed Amri ESPRIT Sana BEN FADHEL


[Link]@[Link] [Link]@[Link]
Plan du cours du module J2ME

Chapitres Séances
Introduction au J2ME 2
Interface utilisateur (Niveau supérieur)+ exposés 3
Examen TP + exposés 1
Interface utilisateur (Niveau inférieur)+ exposés 3
Examen TP + exposés 1
Connexion réseaux +exposés 2
Les enregistrements (RMS) 1
Examen final 1
Evolution Technologique

1/29
Contraintes matérielles des mobiles
Mobile Phone Processor Power Today Compares to
Desktop
p PCs of the 1990’s
1000
Processor Speed of New Models

~ Mobile
M bil
500 Desktop Devices
PCs
400

300

200

100
MHzz

0
1994 1995 1996 1997 1998 1999 2000 2001 2002 2003 2004 2005
2/29
Contraintes matérielles des mobiles
Mobile Phone Storage Today Compares
to Desktop PCs of the 1990
1990’ss
GB Memory/Storage of New Models*
Samsung recently
10
announced a cell
phone with a 1.5GB
Desktop PCs Hard Drive
5
Mobile Phones
1

.1

Samsung
.01 SPH‐V5400

1994 1995 1996 1997 1998 1999 2000 2001 2002 2003 2004 2005
3/29
Contraintes matérielles des mobiles
2004 Camera Phone Resolution Exceeds 2001 Digital Cameras

(Pixels) Resolution of New Models*


67 Million shipped in
5.00 M
2003**
2003
4.00 M Digital Cameras
3.00 M
Camera Phones
2.00 M
80 Million shipped in
1 00 M
1.00 QuickTake 100 2003**
(Apple) SCH‐V200
300 K (Samsung)

110 K

1994 1998 2000 2002 2003 2004


4/29
Contraintes matérielles des mobiles

Evolution of Broadband . . . .
Bandwidth (bps)

Fixed bandwidth Wireless Bandwidth


9M ADSL 7.2M HSDPA
3M CDMA2000 1xEVDO‐
1xEVDO‐A
3M Cable
2.4M CDMA2000 1xEVDO‐
1xEVDO‐0
384k
128k CDMA2000 1X/WCDMA
128k
56k 64k cdmaOne IS‐
IS‐95B
28.8k
9.6k 14.4k cdmaOne IS‐
IS‐95A
9 6k
9.6k
2400
1200

300

1970 1975 1980 1985 1990 1995 2000 2005


5/29
Contraintes matérielles des mobiles

Batteries: The Key Technical Constraint


Handset Power Consumption Trends

6/29
Evolution Technologiques

7/29
Mobile Multimédia

Television Photo Album


Voice Walkie-Talkie PDA Camcorder

Glucometer

Camera

Wallet

FM Radio

Bar Scanner

G
Game Console
C l

GPS Device Rolodex Pager


PC MP3 Player Newspaper

8/29
Application Mobile

9/29
JAVA 2 Micro Edition

10/29
JAVA 2 Micro Edition
•Une plateforme Java pour les systèmes a resources limités.
•Un sous ensemble de J2SE
•Réalisé mi-juin
j 1999
•Les systèmes cibles:
Two way pagers
Two-way
Téléphone mobile, smart phones
PDAs (inc PocketPCs)
TVs, VCRs, CD players
•Présque
Présque tous les téléphones mobiles supportent J2ME

11/29
Les Téléphones J2ME

12/29
Etude Marketing

9 million
clients
9 million utilisateurs 9 million mobiles potentiels

1.2 milliard
8 sur ll modèles
1200
10 dd
desde mobiles
b l mobiles
mobiles
de Java vendus
vendus d compatibles
sont en JuinJava
compatibles 2006
Java

13/29
Les Plateformes JAVA

Java 2 Platform

Java2 Java2 Java2


Standard Edition Enterprise Edition Micro Edition
(J2SE) (J2EE) (J2ME)
PC de bureau & Les systèmes serveur Les systèmes à
Workstation Applications ressource limité

14/29
JAVA 2 Mico Edition

15/29
Architecture d’un téléphone

16/29
Les couches J2ME

17/29
Hosting Operating System

19/29
KVM

¾ Moteur d'exécution

¾Gestionnaires des exceptions

¾Gestionnaires des threads

¾Gestionnaires de sécurité

¾Gestionnaire mémoire

20/29
CLDC :Connected Limited Device Configuration

¾ Définissent les caractéristiques de bases d'un environnement d'exécution


pour un certain type de machine possédant un ensemble de caractéristiques et
de ressources similaires.

¾ Elles se composent d'une machine virtuelle et d'un ensemble d'API de base.

21/29
MIDP : Mobile Information Device Profile

MIDP est un profile standard défini pour un ensemble de machines embarquées


possédant des ressources et une interface graphique limitée.

22/29
Etat de transition d’une MIDlet

Specifiquement, une MIDlet peut


être l’une de ces 3 états:

23/29
Squelette d’une Midlet

24/29
Les exposés
Sujets Nombre des étudiants
Analyseur WiFi sur Android 3
GPS+Google Map 2
Réalité augmentée
g 2
Analyseur WiFi Blackerry 3
GPS+google MAP 2
Analyseur WiFi Windows Mobile 3
Gestion des absences Palm OS 3
Gestion des absences sur Symbian 3
Gestion des absences sur Android 3
G i d
Gestion des absences
b sur Blackberry
Bl kb 3
Gestion des absences Iphone 3
25/29
25/29
Application
pp J2ME ‐ Outil

Nous utiliserons Sun Java Wireless Toolkit 22.x


x for CLDC (la
derniére version en Jan 2008 est 2.5.2)

Téléchargeable
g sur le lien suivant :
[Link]

26/29
Build MIDlet
ƒPress “New Project”.
ƒEntrer le nom du Projet et le nom du MIDlet class .
ƒNew directories will automaticallyy be created.

27/29
Premier exemple de MIDlet

28/29
Building and Run the MIDlet
Click the Build and then the Run buttons.

28/29
Déploiement

Une Midlet java peut être déployée sur un périphérique mobile:


1) Directement par liaison USB, Série, Blutooth.. entre un PC et le
Mobile

2) OTA: Over The Air: Téléchargement à partir d’un serveur.


Utilisation d’un URL = [Link]

Dans les deux cas : il faut créer un package d’installation .jar (archive) {.class ,
images,
fichiers etc..}
etc } et .jad
jad (description))

29/29

Common questions

Alimenté par l’IA

Java 2 Micro Edition (J2ME) is a platform designed for devices with limited resources, offering a subset of the Java 2 Standard Edition (J2SE) suitable for mobile devices. Key features include a lightweight virtual machine and basic APIs tailored for constrained environments. J2ME is relevant to mobile devices because it enables the development of applications that can operate within the limited processing and memory capacities typical of such devices, while still leveraging Java's portability and extensive libraries .

Improvements in mobile device network connectivity, such as the evolution from simple 9.6k connections to advanced 1xEVDO standards, transformed the development and deployment of network-dependent applications by enabling high-speed data transfers and real-time interaction. This facilitated the creation of sophisticated networked applications like streaming services and cloud-based solutions, reflecting a trend towards seamless integration of mobile devices with global networks, supporting a wide variety of user and business functions .

By June 2006, the market impact of Java-compatible mobile phones was significant, with 1.2 billion Java-enabled devices sold and 8 out of 10 phones being Java-compatible . This widespread compatibility enabled the development of a vast array of mobile applications, standardizing the ecosystem around Java and enhancing application portability. It fostered developer engagement and innovation, positioning Java as a foundational technology in the mobile industry, which strengthened its market dominance .

From 1990 to 2005, the evolution of broadband—from basic 9.6 kbps connections to advanced speeds like 2.4M CDMA2000 1xEVDO—was critical in enhancing mobile device capabilities. Faster wireless bandwidths facilitated the development and use of more data-intensive applications, including media streaming and robust online services. This growth in bandwidth supported the transition of mobile devices from simple communication tools to comprehensive multimedia and computing platforms .

By 2004, mobile phone cameras had resolutions surpassing those of early digital cameras from a few years prior, sometimes exceeding 3.00 megapixels while digital cameras in 2001 had similar resolutions . This signifies a trend towards integrating advanced multimedia capabilities into mobile devices, making them versatile tools that could replace or augment dedicated hardware like cameras, thereby expanding their utility and consumer appeal in technology markets .

Mobile phone processors today can compare to desktop PCs of the 1990s in terms of power, with new models reaching processor speeds similar to those found in older desktop PCs . This evolution allows mobile devices to handle more complex applications and features that were traditionally reserved for desktop environments. For mobile application development, this means developers can create more sophisticated and resource-intensive applications, allowing for broader functionality and improved user experiences .

The Mobile Information Device Profile (MIDP) serves as a standard for mobile devices with limited graphical interfaces and resources, defining specifications for creating applications that function within these constraints. It includes a set of APIs that allow developers to design consistent, compatible applications across different devices, ensuring a stable user experience despite hardware limitations. MIDP is instrumental in effectively utilizing device capabilities while maintaining performance efficacy .

Batteries remain a key technical constraint for mobile devices because they limit the duration of device operation between charges and can restrict the implementation of power-intensive features. As mobile applications become more demanding, requiring higher processing power and connectivity, the need for efficient battery management becomes critical. This constraint impacts device functionality by forcing trade-offs between feature complexity and battery life .

From 1990 to 2005, mobile storage capacity witnessed significant advancements, growing from minimal storage similar to early desktop PCs to devices with multiple gigabytes of storage, like Samsung's 1.5GB hard drive phone . This growth allowed mobile software developers to integrate more complex features, including comprehensive data handling and multimedia content, into applications. Larger storage capacities facilitated the expansion of mobile applications' scope, enabling more robust and varied app experiences .

The increase in mobile multimedia capabilities, including functions like cameras, MP3 players, and video capture, significantly influences consumer behavior by enhancing the utility and attractiveness of mobile devices. These capabilities drive changes in device usage patterns, encouraging more frequent interaction with devices for entertainment, social networking, and content creation. Consequently, consumers increasingly rely on mobile devices for activities traditionally associated with dedicated electronics, demonstrating a shift in digital consumption habits .

Vous aimerez peut-être aussi