Latest Release, Android 2.2 on May,20, 2010, with. Google's Nexus One ...
Sequences of application-centric Activity classes .... A very good tutorial at
CCS2008.
Apr 22, 2013 ... smartphones, 42% in tablets, available on smart TVs and mini PC. Leon
Romanovsky [email protected]. Android Architecture For Beginners ...
. MUSIKTECHNOLOGIE: CUBASE SX.............................................. <
SEITE#35>. Medien. ..... Der feurige Ita- lopop-Import Mike Vamp ist angeblich im
-.
As VLSI density increases and cost decreases, we see a trend toward the use of digital computer systems to support many aspects of our everyday lives.
identify application/domain-specific vector instructions and perform automatic customized vectorization. A crucial step to achieving high performance in a ...
Feb 15, 1994 - Low Power Architecture Design ... Advanced Computer Architecture Laboratory ..... more complex. bi is equal to the exclusive or of gi and all.
Thread-level speculation is a technique that brings thread-level parallelism beyond the data-flow limit by executing a piece of code ahead of time speculatively.
Jason Cong, Mohammad Ali Ghodrat, Michael Gill, Hui Huang, Bin Liu, Raghu Prabhakar, ...... [6] J. Cong, Y. Fan, G. Han and Z. Zhang, Application-specific.
Software Platform versus OS. • Android is an application framework on top of
Linux. • facilitating rapid deployment in many domains. • Android is the enabler
for a ...
ve, fast schon plumpe Symbolik der Bilder und die positive, fast süßliche
Atmosphärik der Musik verbinden sich als Clip zu ei- ner bewegenden
Melancholie: ...
te dieser Sessions. Damals fingen ...... Instrumentarien und Session-Vibes einen
Kontra- punkt zur ...... CAYND ••••. STYLEFILE - BLACKBOOK SESSIONS #2.
18 Dec 2013 ... companies to develop open standards for mobiles (phones and tablets)
architecture by Mihail L. Sichi竇. My first android app. • Create a simple ...
This allows (low-speed) run-time access from off-chip debug hardware and software (as described in Sec- tion IV), independently and transparently from the ...
Jun 24, 2010 ... ▻Android OS is emerging in importance for embedded systems developers ... ▻
Android OS combines the power of an advanced applications.
Also Wu et al [21] compare 10 Android customizations, bring- ing metrics on permission usage, in the search for over-privileged packages, and vulnerability ...
Eddie Ashfield, Ian Field, Peter Harrod*, Sean Houlihane, William Orme and ...
Although the Serial Wire Debug protocol is not compatible directly with JTAG, ...
Flex provides excellent capability of debugging flex code and Flash Builder 4 has
an excellent ...
The workshops were hosted within the PACT. (Parallel Architecture and Compilation Techniques) Conference [1], [2]. The advances in technology arc improving ...
and methodologies of automatic instruction set extension for configurable processors, recent study has shown that the limited data bandwidth available in the ...
m Interface ( erged in Sep. KitKat. Hop ate, is in alph mobile dev. 2007 along tware, and ces. (API) Versio ptember 200 pe the new habetical or vices come i.
support in software development and debug tools to bring these features to life. In their 2014 Embedded Market Study, UB
Internet technology, multimedia database applications. 1 Introduction. Emerging standards and technologies for mobile Web services promise to create Internet ...
It is apparent that chemical reactions can follow the ... The fundamental theory of redox chemistry in ... oxidized and reduced form of the redox couple between.
1 Installation des outils 2 Creation d’un projet 3 Compilation d’un projet 4 Installation d’une application 5 Debugging 6 Distribution
2 / 31
Android : Architecture - Compilation - Debug Installation des outils
1 Installation des outils 2 Creation d’un projet 3 Compilation d’un projet 4 Installation d’une application 5 Debugging 6 Distribution
3 / 31
Android : Architecture - Compilation - Debug Installation des outils
Installation du SDK et du NDK 1
T´el´echarger les archives suivantes : Android SDK : Software Development Kit Android NDK : Native Development Kit
`a partir du site http://developer.android.com 2
d´ecompresser les archives
3
mettre `a jour la variable d’environnement PATH : PATH=$PATH:path_to_android-sdk/tools: \ path_to_android-sdk/platform-tools: \ path_to_android-ndk
Attention Ces archives ne sont pas suffisantes pour d´evelopper !
4 / 31
Android : Architecture - Compilation - Debug Installation des outils
Installation des plateformes Chaque d´eveloppement pour une version d’Android n´ecessite l’installation de la plateforme correspondante : 1
lancer la commande android
2
dans la rubrique Available packages choisir les plateformes Android cibles `a installer : SDK Platform, samples, doc
5 / 31
Android : Architecture - Compilation - Debug Installation des outils
Emulateur Le SDK fournit un ´emulateur de p´eriph´erique Android configurable : version d’Android dimension de l’´ecran taille m´emoire support de p´eriph´eriques ... Une configuration pour cet ´emulateur est se nomme un AVD : Android Virtual Device.
6 / 31
Android : Architecture - Compilation - Debug Installation des outils
Cr´eation d’un AVD Android Virtual Device Dans la rubrique Virtual devices, choisir New... et configurer un AVD : nom, version d’Android (Target), . . .
Une fois cr´e´e, l’AVD peut ˆetre lanc´e par Start...
7 / 31
Android : Architecture - Compilation - Debug Installation des outils
8 / 31
Android : Architecture - Compilation - Debug Installation des outils
Inconv´enient L’´emulateur est extrˆemement lent ! Plus loin : test/debuggage directement sur le device.
9 / 31
Android : Architecture - Compilation - Debug Creation d’un projet
1 Installation des outils 2 Creation d’un projet 3 Compilation d’un projet 4 Installation d’une application 5 Debugging 6 Distribution
10 / 31
Android : Architecture - Compilation - Debug Creation d’un projet Choix de la plateforme cible
Choix de la plateforme cible Un projet est cr´e´e pour une cible parmi les cibles install´ees. La liste des cibles s’obtient par la commande : android list targets Exemple $ android list targets Available Android targets: id: 1 or "android-13" Name: Android 3.2 Type: Platform API level: 13 Revision: 1 Skins: WXGA (default)
11 / 31
Android : Architecture - Compilation - Debug Creation d’un projet Application
Cr´eation d’un projet Dans un nouveau dossier : android create project \ --target \ --name \ --path path/to/your/project \ --activity \ --package
12 / 31
Android : Architecture - Compilation - Debug Creation d’un projet Application
Arborescence d’un projet Dossiers cr´e´es automatiquement lors de la cr´eation d’un projet : bin : binaires g´en´er´es libs : biblioth`eques res : fichiers de ressources (icones, layout, . . . ) src : fichiers sources (code Java)
13 / 31
Android : Architecture - Compilation - Debug Creation d’un projet Application
Fichiers g´en´er´es Les fichiers suivants sont cr´e´es automatiquement lors de la cr´eation d’un projet : AndroidManifest.xml build.properties build.xml default.properties local.properties proguard.cfg
14 / 31
Android : Architecture - Compilation - Debug Creation d’un projet Application
Modification d’un projet En cas de modification du nom d’un projet, de la cible ou du chemin : android update p r o j e c t \ −−name \ −−t a r g e t \ −−p a t h p a t h / t o / y o u r / p r o j e c t
15 / 31
Android : Architecture - Compilation - Debug
16 / 31
Creation d’un projet Biblioth` eque
Cr´eation d’une biblioth`eque De mani`ere similaire `a un projet standard : android create lib-project --name \ --target \ --path path/to/your/project \ --package
Android : Architecture - Compilation - Debug Creation d’un projet Int´ egration de code natif
Int´egration de code natif repose sur JNI Java Native Interface supporte les jeux d’instructions : ARMv5TE, ARMv7-A,x86 r´eutilisation de biblioth`eques C/C++ am´elioration de performance sur des codes de calculs OpenGL NEON attention `a la gestion m´emoire !
17 / 31
Android : Architecture - Compilation - Debug Creation d’un projet Int´ egration de code natif
Principe de l’int´egration de code natif 1
Ecrire un code natif C/C++ + wrapper JNI
2
Le code natif C/C++ est compil´e sous forme de biblioth`eque dynamique .so
3
Une biblioth`eque est g´en´er´ee par architecture d´esir´ee
4
Le ou les biblioth`eques .so sont int´egr´ees `a l’application Android
5
La biblioth`eque correspondant au mat´eriel et `a la configuration du syst`eme Android hˆ ote est automatiquement appel´ee lors de l’appel `a la m´ethode native
Implications Augmentation de la taille de l’application Si une biblioth`eque est g´en´er´ee pour le jeu ARMv7-A,
18 / 31
Android : Architecture - Compilation - Debug Creation d’un projet Int´ egration de code natif
Int´egration dans un projet Android 1
Cr´eer un dossier jni `a la racine du projet, puis dans ce dossier,
2
placer les fichiers C/C++
3
cr´eer un fichier Android.mk (fichier Makefile) qui permettra de g´en´erer la biblioth`eque
4
Dans le code Java de l’application, cr´eer un wrapper vers les fonctions natives (partie abord´ee plus tard)
19 / 31
Android : Architecture - Compilation - Debug Compilation d’un projet
1 Installation des outils 2 Creation d’un projet 3 Compilation d’un projet 4 Installation d’une application 5 Debugging 6 Distribution
20 / 31
Android : Architecture - Compilation - Debug Compilation d’un projet
21 / 31
Android : Architecture - Compilation - Debug Compilation d’un projet
Etapes et commandes pour la compilation 1
Si du code natif est pr´esent, g´en´erer la ou les biblioth`eques : ndk-build Les biblioth`eques sont plac´ees dans un sous-dossier du dossier lib
2
Compiler le code Java et g´en´erer un package .apk : ant {debug | release} Choisir debug ou release suivant le mode d´esir´e
22 / 31
Android : Architecture - Compilation - Debug Compilation d’un projet
Modes de compilation debug : l’application est automatiquement sign´ee avec une cl´e de debug connue release : l’application n’est pas sign´ee Le mode debug permet de d´eployer rapidement une application lors de la phase de debug. Le mode release indique que l’on souhaite diffuser l’application g´en´er´ee qui doit alors ˆetre sign´ee avec une cl´e priv´ee (cf section Distribution).
23 / 31
Android : Architecture - Compilation - Debug Compilation d’un projet
Explications sur l’alignement Pour am´eliorer les performances des applications il convient d’aligner correctement les donn´ees en m´emoire pour diminuer le nombre de lecture. Cette contrainte est li´ee au bus m´emoire qui acc`ede aux donn´ees par blocs contig¨ us de 32 bits (en g´en´eral) soit 4 octets. Alignement de l’application Pour aligner sur 4 octets, utiliser la commande : zipalign -v 4 unsigned.apk signed.apk
24 / 31
Android : Architecture - Compilation - Debug Installation d’une application
1 Installation des outils 2 Creation d’un projet 3 Compilation d’un projet 4 Installation d’une application 5 Debugging 6 Distribution
25 / 31
Android : Architecture - Compilation - Debug Installation d’une application
Installation Une application est install´ee sur un AVD ou sur un mat´eriel `a l’aide de la commande : adb install .apk Si plusieurs AVD ou mat´eriels Il est possible d’utiliser les options -s et -d pour sp´ecifier respectivement les identifiants de l’AVD ou du p´eriph´erique cible.
26 / 31
Android : Architecture - Compilation - Debug Installation d’une application