android 6 marshmallow
TRANSCRIPT
![Page 1: Android 6 marshmallow](https://reader031.vdocument.in/reader031/viewer/2022022202/58818bfa1a28ab0d358b4657/html5/thumbnails/1.jpg)
A N D R O I D 6 . 0 M A R S H M A L L O W
API Hours #16@hozakan
![Page 2: Android 6 marshmallow](https://reader031.vdocument.in/reader031/viewer/2022022202/58818bfa1a28ab0d358b4657/html5/thumbnails/2.jpg)
• L’ O S E T L E S A P P L I S • L E S A P I • L E S O U T I L S
![Page 3: Android 6 marshmallow](https://reader031.vdocument.in/reader031/viewer/2022022202/58818bfa1a28ab0d358b4657/html5/thumbnails/3.jpg)
L’ O S E T L E S A P P L I S
![Page 4: Android 6 marshmallow](https://reader031.vdocument.in/reader031/viewer/2022022202/58818bfa1a28ab0d358b4657/html5/thumbnails/4.jpg)
L’OS et les applis - Mode silence
Android 5.x Android 6
![Page 5: Android 6 marshmallow](https://reader031.vdocument.in/reader031/viewer/2022022202/58818bfa1a28ab0d358b4657/html5/thumbnails/5.jpg)
L’OS et les applis - Mode silence
Android 6
![Page 6: Android 6 marshmallow](https://reader031.vdocument.in/reader031/viewer/2022022202/58818bfa1a28ab0d358b4657/html5/thumbnails/6.jpg)
L’OS et les applis - Now on tap
![Page 7: Android 6 marshmallow](https://reader031.vdocument.in/reader031/viewer/2022022202/58818bfa1a28ab0d358b4657/html5/thumbnails/7.jpg)
L’OS et les applis - Mode présentation
![Page 8: Android 6 marshmallow](https://reader031.vdocument.in/reader031/viewer/2022022202/58818bfa1a28ab0d358b4657/html5/thumbnails/8.jpg)
L’OS et les applis - Mode veille
![Page 9: Android 6 marshmallow](https://reader031.vdocument.in/reader031/viewer/2022022202/58818bfa1a28ab0d358b4657/html5/thumbnails/9.jpg)
L’OS et les applis - Mode veille
Doze mode on nexus 5
• Réseau internet désactivé • Alarmes désactivées • Scans wifi désactivés • Aucun SyncAdapter n’est déclenché • Les JobSchedulers sont désactivés
![Page 10: Android 6 marshmallow](https://reader031.vdocument.in/reader031/viewer/2022022202/58818bfa1a28ab0d358b4657/html5/thumbnails/10.jpg)
L E S A P I
![Page 11: Android 6 marshmallow](https://reader031.vdocument.in/reader031/viewer/2022022202/58818bfa1a28ab0d358b4657/html5/thumbnails/11.jpg)
Les APIs - App Links
![Page 12: Android 6 marshmallow](https://reader031.vdocument.in/reader031/viewer/2022022202/58818bfa1a28ab0d358b4657/html5/thumbnails/12.jpg)
Les APIs - App Links
1. Créer un IntentFilter
2. Activer la vérification automatique
3. Publier un fichier Digital Asset Links (assetlinks.json) sur votre site
![Page 13: Android 6 marshmallow](https://reader031.vdocument.in/reader031/viewer/2022022202/58818bfa1a28ab0d358b4657/html5/thumbnails/13.jpg)
Les APIs - Runtime permissions
![Page 14: Android 6 marshmallow](https://reader031.vdocument.in/reader031/viewer/2022022202/58818bfa1a28ab0d358b4657/html5/thumbnails/14.jpg)
Les APIs - Runtime permissions
![Page 15: Android 6 marshmallow](https://reader031.vdocument.in/reader031/viewer/2022022202/58818bfa1a28ab0d358b4657/html5/thumbnails/15.jpg)
Les APIs - Runtime permissions
![Page 16: Android 6 marshmallow](https://reader031.vdocument.in/reader031/viewer/2022022202/58818bfa1a28ab0d358b4657/html5/thumbnails/16.jpg)
Les APIs - Runtime permissions
android.permission-group.SMS SEND_SMS
![Page 17: Android 6 marshmallow](https://reader031.vdocument.in/reader031/viewer/2022022202/58818bfa1a28ab0d358b4657/html5/thumbnails/17.jpg)
Les APIs - Auto backup des applications
Les fichiers d’une application sont sauvegardés :
• dans Google Drive • de manière cryptée • sans coût supplémentaire pour les développeurs ni les utilisateurs • sans rogner sur l’espace disponible de l’utilisateur • max 25MB par application
• une fois toutes les 24h, quand l’appareil est inactif, en train de charger et connecté au wifi
Les fichiers sont restaurés après une désinstallation et réinstallation, ou lorsque l’utilisateur change d’appareil.
![Page 18: Android 6 marshmallow](https://reader031.vdocument.in/reader031/viewer/2022022202/58818bfa1a28ab0d358b4657/html5/thumbnails/18.jpg)
Les APIs - Auto backup des applications
Tout est sauvegardé à l’exception de:
• dossiers cache de l’application • nouveau dossier « NoBackup » • les fichiers sur le stockage externe (mais pas tous!)
Les exceptions sont toutefois possibles :
![Page 19: Android 6 marshmallow](https://reader031.vdocument.in/reader031/viewer/2022022202/58818bfa1a28ab0d358b4657/html5/thumbnails/19.jpg)
Les APIs - le reste
• Support du MIDI • Sélection de texte • Camera2 API • Android for Work • …
![Page 20: Android 6 marshmallow](https://reader031.vdocument.in/reader031/viewer/2022022202/58818bfa1a28ab0d358b4657/html5/thumbnails/20.jpg)
L E S O U T I L S
![Page 21: Android 6 marshmallow](https://reader031.vdocument.in/reader031/viewer/2022022202/58818bfa1a28ab0d358b4657/html5/thumbnails/21.jpg)
Les outils - Gradle
La compilation Android avec Gradle est lente
Gradle Daemon : évite le temps de démarrage de Gradle org.gradle.daemon=true
Compilation parallèle des modules du projet : org.gradle.parallel=true
![Page 22: Android 6 marshmallow](https://reader031.vdocument.in/reader031/viewer/2022022202/58818bfa1a28ab0d358b4657/html5/thumbnails/22.jpg)
Les outils - Gradle
![Page 23: Android 6 marshmallow](https://reader031.vdocument.in/reader031/viewer/2022022202/58818bfa1a28ab0d358b4657/html5/thumbnails/23.jpg)
Les outils - Plateforme de tests
![Page 24: Android 6 marshmallow](https://reader031.vdocument.in/reader031/viewer/2022022202/58818bfa1a28ab0d358b4657/html5/thumbnails/24.jpg)
Les outils - Data binding
Amener le pattern Model - View - ViewModel sur Android
• Gradle plugin • Agit à la compilation • Binding unilatéral pour le moment (code vers UI)
![Page 25: Android 6 marshmallow](https://reader031.vdocument.in/reader031/viewer/2022022202/58818bfa1a28ab0d358b4657/html5/thumbnails/25.jpg)
Les outils - Data binding
layout.xml :
MainActivity.java :
![Page 26: Android 6 marshmallow](https://reader031.vdocument.in/reader031/viewer/2022022202/58818bfa1a28ab0d358b4657/html5/thumbnails/26.jpg)
Les outils - Editeur de thème
![Page 27: Android 6 marshmallow](https://reader031.vdocument.in/reader031/viewer/2022022202/58818bfa1a28ab0d358b4657/html5/thumbnails/27.jpg)
Les outils - le reste
• Android Design Support Library • Utilisation de SVG dans Android Studio • Nouveau compilateur : Jack • Support du NDK (C++) dans Android Studio • Nouvel éditeur de layout • Émulateur Android Auto
![Page 28: Android 6 marshmallow](https://reader031.vdocument.in/reader031/viewer/2022022202/58818bfa1a28ab0d358b4657/html5/thumbnails/28.jpg)
M E R C I