parent
9e074cf483
commit
c272d62903
3 changed files with 15 additions and 6 deletions
|
@ -1,4 +1,4 @@
|
|||
#import "../lib.typ": todo, APK, JAR, AXML, ART, SDK, JNI, NDK, DEX, XML
|
||||
#import "../lib.typ": todo, APK, JAR, AXML, ART, SDK, JNI, NDK, DEX, XML, API
|
||||
|
||||
== Android <sec:bg-android>
|
||||
|
||||
|
@ -76,7 +76,7 @@ The `R.java` file allows the developer to refere to ressources with readable nam
|
|||
The source code is then compile.
|
||||
The most common programming langages used for Android application are Java and Kotlin.
|
||||
Both are first compiled to java bytecode in `.class` files using the langage compiler.
|
||||
To allow access to the Android API, the `.class` are linked during the compilation to an `android.jar` file that contains classes with the same signatures as the one in the Android API for the targeted SDK.
|
||||
To allow access to the Android #API, the `.class` are linked during the compilation to an `android.jar` file that contains classes with the same signatures as the one in the Android #API for the targeted SDK.
|
||||
The `.class` files are the converted to #DEX files using `d8`.
|
||||
During those steeps, both the original langage compiler and `d8` can perform optimizations on the classes.
|
||||
|
||||
|
@ -120,9 +120,9 @@ In the course of a componant live cicle, the system will call specifics methods
|
|||
Those methods are to be overrident by the classes defined in the application if they are specific action to be perfomed.
|
||||
For instance, an activitymight compute some values in `onCreate()`, called when the activity is created, save the value of those variable to the file system in `onStop()`, called when the acitivity stop being visible to the user, and recover the saved values in `onRestart()`, called when the user navigate back to the activity.
|
||||
|
||||
In addition to the componants declared in the manifest that act as entry points, the Android API heavily relies on callbacks.
|
||||
In addition to the componants declared in the manifest that act as entry points, the Android #API heavily relies on callbacks.
|
||||
The most obvious cases are for the user interface, for example a button will call a callback method defined by the application when clicked.
|
||||
Other part of the API also rely on non-linear execution, for example when an application send an itent (see @sec:bg-sandbox), the intent sent in responce is transmitted to back to the application by calling another method.
|
||||
Other part of the #API also rely on non-linear execution, for example when an application send an itent (see @sec:bg-sandbox), the intent sent in responce is transmitted to back to the application by calling another method.
|
||||
|
||||
==== Application Isolation and Interprocess Communication <sec:bg-sandbox>
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue