Top Banner
Android Fundamentals and communication with java Ee application [email protected] @ouridadil Ourida adil 1
10

Android fundamentals and communication with Java EE Application

Jul 27, 2015

Download

Technology

Adil Ourida
Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: Android fundamentals and communication with Java EE Application

Android Fundamentals and communication with java Ee application

[email protected] @ouridadil

Ourida adil

1

Page 2: Android fundamentals and communication with Java EE Application

jmaghreb-warida.rhcloud.com/

2

Page 3: Android fundamentals and communication with Java EE Application

Un système d’exploitation open source conçu essentiellement pour les appareils mobiles.

Développé par Google et maintenu par Open Handset Alliance (OHA) Noyau Linux Langage JAVA Dalvik VM vs Java VM Hardware :

• Où suis-je ? GPS • Dans quelle direction je marche ? Boussole • Est-ce que mon téléphone est en mouvement ? Accéléromètre • Bluetouth • Camera

Environement de développement : Emulateur, Eclipse, outils de debugging …

Android

3

Page 4: Android fundamentals and communication with Java EE Application

application Android

Les Composants : Activities Services Intents Broadcast Receiveres Content providers

4

Page 5: Android fundamentals and communication with Java EE Application

Activities

Interface utilisateur. Création de l’UI de manière

statique et dynamique. Cycle de vie.

5

Page 6: Android fundamentals and communication with Java EE Application

Services

Les services servent à faire des traitements en arrière plan sans intéragir avec le client.

Ne possède pas d’interface utilisateur.

S’exécute dans le UIThread

6

Page 7: Android fundamentals and communication with Java EE Application

Intents

Les intents sont un paradigme décrivant la communication interne dans le système android.

Les Intent dans android décrit ce qu’on veut. Par exemple : • Je veux lancer le browser. • Je veux voir la liste des contacts .

Les intents facilite la gestion de la navigation.

7

Page 8: Android fundamentals and communication with Java EE Application

REST : JAX-RS

REST (Representational State Transfert) est un type d'architecture reposant sur le fonctionnement du web.

Pour concevoir un service REST, il faut bien tout simplement : Connaître le protocole HTTP (Hypertext

Transfert Protocole), Connaître le principe des URI (Uniform

Resource Identifiers), Raisonner en terme de ressources, Respecter quelques règles.

JAX-RS : jersey est l’implémentation par défaut des services web REST.

import javax.ws.rs.*; @Path("/hello") public class HelloWorld{ @GET @Produces("text/plain") public String getMessage() { return "Hello World";} }

8

Page 9: Android fundamentals and communication with Java EE Application

Code source

Bientôt sera disponible sur le github repository.

9

Page 10: Android fundamentals and communication with Java EE Application

Communauté

10

Rejoindre MoroccoJUG : http://moroccojug.org/