Androind Developer PDF
Androind Developer PDF
Androind Developer PDF
Android framework
Java classes under com.android
Plaform version
5.0 Lollipop
4.4 KitKat
Framework API level
SDK compatibility
Each platform version has an API level
NDK API level
API level for native headers
Distribution
http://developer.android.com/about/dashboards/index.html
Browsing the Android Source
Source at:
https://android.googlesource.com/
com.android classes
http://developer.android.com/reference/packages.html
Outline
Android SDK
Provides the Java framework classes
Compiles to java bytecode
Class framework is updated with every OS release
Android NDK
C/C++ toolchain for compiling to machine code
Android platform tools
adb (android debug bridge) : runs and debugs apps from your dev machine
Android developer tools
Eclipse plug-in for Android
Android studio (doesnt yet fully support all NDK features)
Setup options
In Eclipse
File -> New -> Android
Application Project
Hello Android!
Hello Android!
Import an project from existing code
AndroidManifest.xml
Use findViewById
R.id.name corresponds to
the name given in the xml
file
Event listeners (and logging, too)
Logcat
Window -> Show View -> Other -> Android -> Logcat
Creating a log file
Writing to the log file
Long running task